mirror of
https://github.com/nymurbd/MikroTik-scripts.git
synced 2025-07-10 18:14:29 +02:00
mod/notification-email: clean name for display name
This commit is contained in:
parent
c016a6ef47
commit
ccfbabde5e
1 changed files with 3 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue