diff -rc alpine-2.10/alpine/reply.c alpine-2.10.preservefields/alpine/reply.c *** alpine-2.10/alpine/reply.c 2013-01-11 17:43:09.000000000 -0700 --- alpine-2.10.preservefields/alpine/reply.c 2013-01-11 20:43:22.000000000 -0700 *************** *** 931,938 **** int reply_to_all_query(int *flagp) { ! switch(want_to("Reply to all recipients", ! 'n', 'x', NO_HELP, WT_SEQ_SENSITIVE)){ case 'x' : return(-1); --- 931,966 ---- int reply_to_all_query(int *flagp) { ! char prompt[80]; ! ESCKEY_S ekey[4]; ! char cmd; ! ! ekey[0].name = "Y"; ! ekey[0].ch = 'y'; ! ekey[0].rval = 'y'; ! ekey[0].label = N_("Yes"); ! ekey[1].name = "N"; ! ekey[1].ch = 'n'; ! ekey[1].rval = 'n'; ! ekey[1].label = N_("No"); ! ekey[2].name = "P"; ! ekey[2].ch = 'p'; ! ekey[2].rval = 'p'; ! ekey[3].ch = -1; ! ! ps_global->preserve = F_ON(F_PRESERVE_ORIGINAL_FIELD, ps_global); ! ! ! loop: ! ekey[2].label = ps_global->preserve ? N_("Not Preserve") : N_("Preserve"); ! snprintf(prompt, sizeof(prompt), _("Reply to all recipients%s"), ! ps_global->preserve ? _(" (preserving fields)? ") : "? "); ! ! prompt[sizeof(prompt)-1] = '\0'; ! ! switch(cmd = radio_buttons(prompt, -FOOTER_ROWS(ps_global), ekey, ! 'n', 'x', h_preserve_field, RB_NORM)){ ! case 'x' : return(-1); *************** *** 943,948 **** --- 971,981 ---- case 'n' : /* clear reply-all bit */ (*flagp) &= ~RSF_FORCE_REPLY_ALL; break; + + case 'p' : + ps_global->preserve = !ps_global->preserve; + goto loop; /* ugly, but saves me a variable */ + break; } return(0); diff -rc alpine-2.10/pith/conf.c alpine-2.10.preservefields/pith/conf.c *** alpine-2.10/pith/conf.c 2013-01-11 19:45:41.000000000 -0700 --- alpine-2.10.preservefields/pith/conf.c 2013-01-11 20:43:22.000000000 -0700 *************** *** 2800,2805 **** --- 2800,2807 ---- F_ENABLE_STRIP_SIGDASHES, h_config_strip_sigdashes, PREF_RPLY, 0}, {"forward-as-attachment", "Forward messages as attachments", F_FORWARD_AS_ATTACHMENT, h_config_forward_as_attachment, PREF_RPLY, 0}, + {"preserve-original-fields", NULL, + F_PRESERVE_ORIGINAL_FIELD, h_config_preserve_field, PREF_RPLY, 0}, /* Sending Prefs */ {"disable-sender", "Do Not Generate Sender Header", diff -rc alpine-2.10/pith/conftype.h alpine-2.10.preservefields/pith/conftype.h *** alpine-2.10/pith/conftype.h 2013-01-11 19:45:41.000000000 -0700 --- alpine-2.10.preservefields/pith/conftype.h 2013-01-11 20:43:22.000000000 -0700 *************** *** 516,521 **** --- 516,522 ---- F_RENDER_HTML_INTERNALLY, F_ENABLE_JUMP_CMD, F_FORWARD_AS_ATTACHMENT, + F_PRESERVE_ORIGINAL_FIELD, #ifndef _WINDOWS F_USE_SYSTEM_TRANS, #endif /* ! _WINDOWS */ diff -rc alpine-2.10/pith/pine.hlp alpine-2.10.preservefields/pith/pine.hlp *** alpine-2.10/pith/pine.hlp 2013-01-11 20:33:27.000000000 -0700 --- alpine-2.10.preservefields/pith/pine.hlp 2013-01-11 20:43:22.000000000 -0700 *************** *** 3252,3257 **** --- 3252,3258 ----