diff options
author | Christian Hesse <mail@eworm.de> | 2024-03-12 22:03:04 +0100 |
---|---|---|
committer | Christian Hesse <mail@eworm.de> | 2024-03-12 22:36:29 +0100 |
commit | ccfbabde5eed08a021b2d47f34bc4498940fda1d (patch) | |
tree | 39df07c7553020ad684045d7bb56ab3d07bd6389 | |
parent | c016a6ef47eb08ad0f1f72968348af7bfa0acad0 (diff) |
mod/notification-email: clean name for display name
-rw-r--r-- | mod/notification-email.rsc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/mod/notification-email.rsc b/mod/notification-email.rsc index d801d78..0d83d69 100644 --- a/mod/notification-email.rsc +++ b/mod/notification-email.rsc @@ -22,13 +22,15 @@ :set EMailGenerateFrom do={ :global Identity; + :global CleanName; + :local From [ /tool/e-mail/get from ]; :if ($From ~ "<.*>\$") do={ :return $From; } - :return ("\"" . $Identity . " via routeros-scripts\" <" . $From . ">"); + :return ([ $CleanName $Identity ] . " via routeros-scripts <" . $From . ">"); } # flush e-mail queue |