From 14bdc127b6fc24af54edd90949cc938b9de53f25 Mon Sep 17 00:00:00 2001 From: Michael Elkins Date: Fri, 17 Apr 2009 15:45:23 +0200 Subject: [PATCH] Make sure Recent-From: consults $realname. Closes #1721. --- ChangeLog | 10 ++++++++++ sendlib.c | 10 ++++++++++ 2 files changed, 20 insertions(+) diff --git a/ChangeLog b/ChangeLog index 83ba9eda7..f6dd07a42 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,13 @@ +2009-04-17 15:37 +0200 Rocco Rutte (3a7ecc3f8aeb) + + * UPDATING, functions.h, pager.c: Make and + work in the pager, too. Closes #3212. + +2009-04-17 13:20 +0200 Rocco Rutte (b9df4ac3d51e) + + * ChangeLog, pager.c: Don't consider \n part of a line for body + coloring. Closes #2363. + 2009-04-17 12:47 +0200 Rocco Rutte (85414f890777) * attach.c: Enlarge buffer size for parsing mailcap files diff --git a/sendlib.c b/sendlib.c index 25cab0808..2106e9bb3 100644 --- a/sendlib.c +++ b/sendlib.c @@ -2389,6 +2389,16 @@ int mutt_bounce_message (FILE *fp, HEADER *h, ADDRESS *to) resent_from[0] = '\0'; from = mutt_default_from (); + /* + * mutt_default_from() does not use $realname if the real name is not set + * in $from, so we add it here. The reason it is not added in + * mutt_default_from() is that during normal sending, we execute + * send-hooks and set the realname last so that it can be changed based + * upon message criteria. + */ + if (! from->personal) + from->personal = safe_strdup(Realname); + if (fqdn) rfc822_qualify (from, fqdn); -- 2.40.0