message-ID for that header.
# set hostname=""
# unset ignore_list_rely_to
# set implicit_autoview=no
-# set in_reply_to="%i; from %n on %{!%a, %b %d, %Y at %I:%M:%S%p %Z}"
# set include=ask-yes
# set indent_string="> "
# set index_format="%4C %Z %{%b %d} %-15.15L (%4l) %s"
comma-separated list of type names (without white space) for which
the corresponding mailcap entries will be used to display MIME parts.
-<sect2>in_reply_to
-<p>
-Type: format string<newline>
-Default: &dquot;%i; from \&dquot;%n\&dquot; on %{!%a, %b %d, %Y at %I:%M:%S%p}&dquot;
-
-This specifies the format of the <tt/In-Reply-To:/ header
-field added when replying to a message. For a full listing of
-defined escape sequences see the section on <ref id="index_format"
-name="$index_format">.
-
<sect2>include<label id="include">
<p>
Type: quadoption<newline>
WHERE short ImapCheckTime;
WHERE char *ImapHomeNamespace INITVAL (NULL);
#endif
-WHERE char *InReplyTo;
WHERE char *Inbox;
WHERE char *Ispell;
WHERE char *Locale;
{ "imap_home_namespace", DT_STR, R_NONE, UL &ImapHomeNamespace, UL 0},
#endif
{ "implicit_autoview", DT_BOOL,R_NONE, OPTIMPLICITAUTOVIEW, 0},
- { "in_reply_to", DT_STR, R_NONE, UL &InReplyTo, UL "%i; from %n on %{!%a, %b %d, %Y at %I:%M:%S%p %Z}" },
{ "include", DT_QUAD, R_NONE, OPT_INCLUDE, M_ASKYES },
{ "indent_string", DT_STR, R_NONE, UL &Prefix, UL "> " },
{ "indent_str", DT_SYN, R_NONE, UL "indent_string", 0 },
env->subject = safe_strdup ("Re: your mail");
/* add the In-Reply-To field */
- if (InReplyTo)
+ snprintf (buffer, sizeof (buffer), "In-Reply-To: %s",
+ cur->env->message_id);
+
+ tmp = env->userhdrs;
+ while (tmp && tmp->next)
+ tmp = tmp->next;
+ if (tmp)
{
- 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);
+ tmp->next = mutt_new_list ();
+ tmp = tmp->next;
}
+ else
+ tmp = env->userhdrs = mutt_new_list ();
+ tmp->data = safe_strdup (buffer);
if(tag)
{