summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Elkins <me@sigpipe.org>2010-08-09 09:38:27 -0700
committerMichael Elkins <me@sigpipe.org>2010-08-09 09:38:27 -0700
commitbec81386da43443ee67c5918ae006df2c44fdf4e (patch)
tree07a31f6d58e8e30d171146645ebb3fe3d549b17f
parente9d84d96dc3ec3a11ab95a025c30418c7385e1ff (diff)
clear the real name when $reverse_realname is unset and a match is hit so that
$realname can be set in a reply- or send-hook closes #3427
-rw-r--r--send.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/send.c b/send.c
index 94cc93e8..f9384231 100644
--- 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);
}