mirror of
https://github.com/eworm-de/routeros-scripts.git
synced 2025-08-04 10:14:56 +02:00
mod/notification-email: introduce $PurgeEmailQueue
... to purge the queue and remove the scheduler.
This commit is contained in:
parent
5b789d298b
commit
9a5d55da0d
2 changed files with 14 additions and 0 deletions
|
@ -10,6 +10,7 @@
|
|||
:global LogForwardFilterLogForwarding;
|
||||
:global NotificationEMailSubject;
|
||||
:global NotificationFunctions;
|
||||
:global PurgeEMailQueue;
|
||||
:global QuotedPrintable;
|
||||
:global SendEMail;
|
||||
:global SendEMail2;
|
||||
|
@ -156,6 +157,14 @@
|
|||
}
|
||||
}
|
||||
|
||||
# purge the e-mail queue
|
||||
:set PurgeEMailQueue do={
|
||||
:global EmailQueue;
|
||||
|
||||
/system/scheduler/remove [ find where name="\$FlushEmailQueue" ];
|
||||
:set EmailQueue;
|
||||
}
|
||||
|
||||
# convert string to quoted-printable
|
||||
:global QuotedPrintable do={
|
||||
:local Input [ :tostr $1 ];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue