diff -rc alpine-2.01/alpine/reply.c alpine-2.01.preservefields/alpine/reply.c *** alpine-2.01/alpine/reply.c 2011-01-09 22:00:16.000000000 -0600 --- alpine-2.01.preservefields/alpine/reply.c 2011-07-08 13:20:09.000000000 -0500 *************** *** 930,937 **** 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); --- 930,965 ---- 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); *************** *** 942,947 **** --- 970,980 ---- 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.01/pith/conf.c alpine-2.01.preservefields/pith/conf.c *** alpine-2.01/pith/conf.c 2011-01-09 22:00:22.000000000 -0600 --- alpine-2.01.preservefields/pith/conf.c 2011-07-08 13:20:09.000000000 -0500 *************** *** 2799,2804 **** --- 2799,2806 ---- 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.01/pith/conftype.h alpine-2.01.preservefields/pith/conftype.h *** alpine-2.01/pith/conftype.h 2011-01-09 22:00:22.000000000 -0600 --- alpine-2.01.preservefields/pith/conftype.h 2011-07-08 13:20:09.000000000 -0500 *************** *** 514,519 **** --- 514,520 ---- 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.01/pith/pine.hlp alpine-2.01.preservefields/pith/pine.hlp *** alpine-2.01/pith/pine.hlp 2011-01-09 22:00:23.000000000 -0600 --- alpine-2.01.preservefields/pith/pine.hlp 2011-07-08 13:20:09.000000000 -0500 *************** *** 3202,3207 **** --- 3202,3208 ----