]> granicus.if.org Git - neomutt/commitdiff
clear the real name when $reverse_realname is unset and a match is hit so that
authorMichael Elkins <me@mutt.org>
Mon, 9 Aug 2010 16:38:27 +0000 (09:38 -0700)
committerMichael Elkins <me@mutt.org>
Mon, 9 Aug 2010 16:38:27 +0000 (09:38 -0700)
$realname can be set in a reply- or send-hook

closes #3427

send.c

diff --git a/send.c b/send.c
index 94cc93e8177b2f7b5676f711553423065e280122..f938423101bf1f3fe099dee311c87b3f1385d5c0 100644 (file)
--- a/send.c
+++ b/send.c
@@ -939,10 +939,11 @@ static ADDRESS *set_reverse_name (ENVELOPE *env)
   if (tmp)
   {
     tmp = rfc822_cpy_adr_real (tmp);
+    /* when $reverse_realname is not set, clear the personal name so that it
+     * may be set vi a reply- or send-hook.
+     */
     if (!option (OPTREVREAL))
       FREE (&tmp->personal);
-    if (!tmp->personal)
-      tmp->personal = safe_strdup (Realname);
   }
   return (tmp);
 }