aboutsummaryrefslogtreecommitdiffstats
path: root/mod
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2024-03-12 22:03:04 +0100
committerGravatar Christian Hesse <mail@eworm.de>2024-03-12 22:36:29 +0100
commitccfbabde5eed08a021b2d47f34bc4498940fda1d (patch)
tree39df07c7553020ad684045d7bb56ab3d07bd6389 /mod
parentc016a6ef47eb08ad0f1f72968348af7bfa0acad0 (diff)
mod/notification-email: clean name for display name
Diffstat (limited to 'mod')
-rw-r--r--mod/notification-email.rsc4
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