mirror of
https://github.com/nymurbd/MikroTik-scripts.git
synced 2025-07-11 18:44:31 +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={
|
:set EMailGenerateFrom do={
|
||||||
:global Identity;
|
:global Identity;
|
||||||
|
|
||||||
|
:global CleanName;
|
||||||
|
|
||||||
:local From [ /tool/e-mail/get from ];
|
:local From [ /tool/e-mail/get from ];
|
||||||
|
|
||||||
:if ($From ~ "<.*>\$") do={
|
:if ($From ~ "<.*>\$") do={
|
||||||
:return $From;
|
:return $From;
|
||||||
}
|
}
|
||||||
|
|
||||||
:return ("\"" . $Identity . " via routeros-scripts\" <" . $From . ">");
|
:return ([ $CleanName $Identity ] . " via routeros-scripts <" . $From . ">");
|
||||||
}
|
}
|
||||||
|
|
||||||
# flush e-mail queue
|
# flush e-mail queue
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue