mirror of
https://github.com/eworm-de/routeros-scripts.git
synced 2024-05-11 05:55:19 +00:00
mod/notification-email: clean name for display name
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user