mirror of
https://github.com/eworm-de/routeros-scripts.git
synced 2026-03-05 05:29:37 +00:00
mod/notification-email: use $RmFile
This commit is contained in:
parent
0014674260
commit
9efc5047d0
1 changed files with 2 additions and 1 deletions
|
|
@ -44,6 +44,7 @@
|
||||||
:global IsDNSResolving;
|
:global IsDNSResolving;
|
||||||
:global IsTimeSync;
|
:global IsTimeSync;
|
||||||
:global LogPrint;
|
:global LogPrint;
|
||||||
|
:global RmFile;
|
||||||
|
|
||||||
:local AllDone true;
|
:local AllDone true;
|
||||||
:local QueueLen [ :len $EmailQueue ];
|
:local QueueLen [ :len $EmailQueue ];
|
||||||
|
|
@ -111,7 +112,7 @@
|
||||||
:set Wait false;
|
:set Wait false;
|
||||||
:if (($Message->"remove-attach") = true) do={
|
:if (($Message->"remove-attach") = true) do={
|
||||||
:foreach File in=$Attach do={
|
:foreach File in=$Attach do={
|
||||||
/file/remove $File;
|
$RmFile $File;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue