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: neomutt-20160307~686 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=14bdc127b6fc24af54edd90949cc938b9de53f25;p=neomutt Make sure Recent-From: consults $realname. Closes #1721. --- 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);