aboutsummaryrefslogtreecommitdiffstats
path: root/rules
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2017-04-25 10:43:07 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2017-04-25 10:44:18 +0100
commitd21fdd376f883510ae2bf5de7307eb59d84cb614 (patch)
treebcc09218952f1b97d84c93137c3eb8171a781605 /rules
parentcf52b4f1cee94112a58e36c076ea7004cb290c87 (diff)
downloadrspamd-d21fdd376f883510ae2bf5de7307eb59d84cb614.tar.gz
rspamd-d21fdd376f883510ae2bf5de7307eb59d84cb614.zip
[Fix] Fix setting of email address
Diffstat (limited to 'rules')
-rw-r--r--rules/misc.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/rules/misc.lua b/rules/misc.lua
index 20505828b..ccc52d887 100644
--- a/rules/misc.lua
+++ b/rules/misc.lua
@@ -415,8 +415,8 @@ local aliases_id = rspamd_config:register_symbol{
addr.addr = string.format('%s@', addr.user)
end
- if addr.name then
- addr.raw = string.format('%s <%s>', addr.name, addr.addr)
+ if addr.name and #addr.name > 0 then
+ addr.raw = string.format('"%s" <%s>', addr.name, addr.addr)
else
addr.raw = string.format('<%s>', addr.addr)
end