diff options
author | Thomas Roessler <roessler@does-not-exist.org> | 1999-09-30 19:47:19 +0000 |
---|---|---|
committer | Thomas Roessler <roessler@does-not-exist.org> | 1999-09-30 19:47:19 +0000 |
commit | 38a4991acb1455c51cbe8f32aeda324dea657979 (patch) | |
tree | f25ebeec954ba58184f43f77a3803d52b61f813b /send.c | |
parent | 0d3783d3aeb10a5ad2006e18c136ff9b0206b4f6 (diff) |
[unstable] Re-add in-reply-to. This time with a suitable default. #-\
Diffstat (limited to 'send.c')
-rw-r--r-- | send.c | 26 |
1 files changed, 14 insertions, 12 deletions
@@ -580,20 +580,22 @@ envelope_defaults (ENVELOPE *env, CONTEXT *ctx, HEADER *cur, int flags) env->subject = safe_strdup ("Re: your mail"); /* add the In-Reply-To field */ - snprintf (buffer, sizeof (buffer), "In-Reply-To: %s", - cur->env->message_id); - - tmp = env->userhdrs; - while (tmp && tmp->next) - tmp = tmp->next; - if (tmp) + if (InReplyTo) { - tmp->next = mutt_new_list (); - tmp = tmp->next; + strfcpy (buffer, "In-Reply-To: ", sizeof (buffer)); + mutt_make_string (buffer + 13, sizeof (buffer) - 13, InReplyTo, ctx, cur); + tmp = env->userhdrs; + while (tmp && tmp->next) + tmp = tmp->next; + if (tmp) + { + tmp->next = mutt_new_list (); + tmp = tmp->next; + } + else + tmp = env->userhdrs = mutt_new_list (); + tmp->data = safe_strdup (buffer); } - else - tmp = env->userhdrs = mutt_new_list (); - tmp->data = safe_strdup (buffer); if(tag) { |