aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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