summaryrefslogtreecommitdiffstats
path: root/send.c
diff options
context:
space:
mode:
authorThomas Roessler <roessler@does-not-exist.org>1999-02-18 17:58:43 +0000
committerThomas Roessler <roessler@does-not-exist.org>1999-02-18 17:58:43 +0000
commita15f31d6be1e72ec7a828be3db98715b9e2abf13 (patch)
tree7d807f0a386975df2cc15189f585884e0efa0746 /send.c
parent38ee28dde86016ac023d05592d7505d7fb1caa6b (diff)
Introduce $honor_followup_to. The user will now be asked whether he
wants to honor mail-followup-to or not.
Diffstat (limited to 'send.c')
-rw-r--r--send.c14
1 files changed, 11 insertions, 3 deletions
diff --git a/send.c b/send.c
index 67386ad8..011d1f9b 100644
--- a/send.c
+++ b/send.c
@@ -398,8 +398,15 @@ static int default_to (ADDRESS **to, ENVELOPE *env, int group)
if (group && env->mail_followup_to)
{
- rfc822_append (to, env->mail_followup_to);
- return 0;
+ snprintf (prompt, sizeof (prompt), _("Follow-up to %s%s?"),
+ env->mail_followup_to->mailbox,
+ env->mail_followup_to->next ? "..." : "");
+
+ if (query_quadoption (OPT_MFUPTO, prompt) == M_YES)
+ {
+ rfc822_append (to, env->mail_followup_to);
+ return 0;
+ }
}
if (!option(OPTREPLYSELF) && mutt_addr_is_user (env->from))
@@ -725,7 +732,8 @@ void mutt_set_followup_to (ENVELOPE *e)
ADDRESS *t = NULL;
/* only generate the Mail-Followup-To if the user has requested it, and
- it hasn't already been set */
+ * it hasn't already been set
+ */
if (option (OPTFOLLOWUPTO) && !e->mail_followup_to)
{
if (mutt_is_list_recipient (0, e->to, e->cc))