WHERE short ImapCheckTimeout;
WHERE char *ImapHomeNamespace INITVAL (NULL);
#endif
+WHERE char *InReplyTo;
WHERE char *Inbox;
WHERE char *Ispell;
WHERE char *Locale;
** message to which you are replying. You are strongly encouraged not to
** change this value, as it tends to agitate the more fanatical netizens.
*/
+ { "in_reply_to", DT_STR, R_NONE, UL &InReplyTo, UL "%i; from %a on %{!%a, %b %d, %Y at %I:%M:%S%p %Z}" },
+ /*
+ ** .pp
+ ** This specifies the format of the \fIIn-Reply-To\fP header field
+ ** added when replying to a message. For a ful llisting of
+ ** defined escape sequences, ese the section on $$index_format.
+ ** .pp
+ ** \fBNote:\fP Don't use any sequences in this format string which
+ ** may include 8-bit characters. Using such escape sequences may
+ ** lead to bad headers.
+ */
{ "indent_str", DT_SYN, R_NONE, UL "indent_string", 0 },
/*
*/
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)
{