summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Roessler <roessler@does-not-exist.org>2001-05-30 16:55:38 +0000
committerThomas Roessler <roessler@does-not-exist.org>2001-05-30 16:55:38 +0000
commit284a9737fd0fa1044f430bbf3d6f0daedc25c6f0 (patch)
tree8de429725158465dad19a538c1d2686ba27c40e0
parent88797adadc1444dd0b69b5802a34c4aa7cab25d0 (diff)
If messages have no References header, fall back to using
In-Reply-To when constructing a reply's references header. This may not be strictly according to the book, but looks like a reasonable suggestion (which came from Vincent Lefebvre).
-rw-r--r--send.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/send.c b/send.c
index ffc4bb88..a9eb1fa7 100644
--- a/send.c
+++ b/send.c
@@ -542,9 +542,12 @@ int mutt_fetch_recips (ENVELOPE *out, ENVELOPE *in, int flags)
LIST *mutt_make_references(ENVELOPE *e)
{
- LIST *t, *l;
-
- l = mutt_copy_list(e->references);
+ LIST *t = NULL, *l = NULL;
+
+ if (e->references)
+ l = mutt_copy_list (e->references);
+ else
+ l = mutt_copy_list (e->in_reply_to);
if(e->message_id)
{