mirror of
https://github.com/eworm-de/routeros-scripts
synced 2024-05-14 10:04:19 +02:00
mod/notification-email: clean name for display name
This commit is contained in:
parent
c016a6ef47
commit
ccfbabde5e
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue