From: Michael Elkins Date: Fri, 17 Apr 2009 13:45:23 +0000 (+0200) Subject: Make sure Recent-From: consults $realname. Closes #1721. X-Git-Tag: mutt-1-5-20-rel~112 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a31235a5463bbb68bd57d73a09b7260c8fccd193;p=mutt Make sure Recent-From: consults $realname. Closes #1721. --- diff --git a/ChangeLog b/ChangeLog index 83ba9eda..f6dd07a4 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 25cab080..2106e9bb 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);