Christian Hesse
8f6a38f299
mod/notification-email: remove schedule with find...
...
... as a race condition could occur and the scheduler is already gone.
2025-11-19 16:19:59 +01:00
Christian Hesse
20987221d9
mod/notification-email: ignore errors (for now...)
...
Errors are returned since RouterOS 7.21beta2.
We keep the current logic for now, as we want to support older
RouterOS versions. This is something to be reworked later...
2025-10-26 19:19:13 +01:00
Christian Hesse
2d81984aed
mod/notification-email: use $RmFile
2025-06-04 22:30:42 +02:00
Christian Hesse
e3284ca770
mod/notification-email: use $FileExists ...
...
... to work around restrictions in new file handling.
2025-06-04 22:30:39 +02:00
Christian Hesse
2a95687477
mod/notification-email: add the link symbol
2025-05-22 10:13:52 +02:00
Christian Hesse
74dc809b98
mod/notification-email: properly truncate the body
...
Truned out that the size limit for e-mail message/body is anywhere just
below 64kB... So truncate at about 62.000 bytes.
2025-05-22 10:13:52 +02:00
Christian Hesse
ff218e4ce5
mod/notification-email: add error handling when sending mail
2025-05-22 10:13:52 +02:00
Christian Hesse
862830b341
mod/notification-email: use :onerror for outer block
2025-05-08 09:51:07 +02:00
Christian Hesse
4bfb591fa0
bump required RouterOS version for all scripts
2025-02-07 17:44:41 +01:00
Christian Hesse
370e81321f
mod/notification-email: add dependencies on device-mode
2025-01-30 09:00:02 +01:00
Christian Hesse
631f63836b
mod/notification-email: use short url rsc.eworm.de
2025-01-29 14:14:27 +01:00
Christian Hesse
9e3729c279
update copyright for 2025
2025-01-02 00:04:06 +01:00
Christian Hesse
b66332eb46
mod/notification-email: $FlushEmailQueue: just return on empty queue
2024-12-17 13:21:14 +01:00
Christian Hesse
8c8c75ca66
mod/notification-email: $FlushEmailQueue: move the check up...
...
... as this needs to be done before creating a scheduler. 😜
Also remove the scheduler and return.
2024-12-17 11:20:09 +01:00
Christian Hesse
1e2ca3d214
mod/notification-email: $FlushEmailQueue: create scheduler if missing...
...
... as it is required to be modified several times below.
2024-12-17 11:20:09 +01:00
Christian Hesse
5310673152
mod/notification-email: $FlushEmailQueue: return on purge
2024-12-17 11:20:09 +01:00
Christian Hesse
009a6bd762
mod/notification-email: $FlushEmailQueue: return on success
2024-12-17 11:20:09 +01:00
Christian Hesse
42bcc63d29
mod/notification-email: increase retry interval on failure
2024-12-17 11:20:09 +01:00
Christian Hesse
bceabebf9c
mod/notification-email: drop useless safeguard
...
Guess it was useful back in the day. Now the function exits early if the
queue is empty... So this can never be zero.
2024-12-17 11:19:57 +01:00
Christian Hesse
1927dc505a
mod/notification-email: $SendEMail: use $ExitError to indicate unintentional error
2024-12-09 11:49:50 +01:00
Christian Hesse
5450618723
mod/notification-email: $FlushEmailQueue: use $ExitError to indicate unintentional error
2024-12-09 11:49:50 +01:00
Christian Hesse
6fbafe76ba
bump RouterOS requirement for all scripts and modules...
...
... now that global-functions requires RouterOS 7.14 anyway.
2024-07-16 13:50:22 +02:00
Christian Hesse
012d259ca1
mod/notification-email: $SendEMail: set origin
2024-04-10 10:08:58 +02:00
Christian Hesse
009674b5bc
bump RouterOS requirement for all scripts and modules...
...
... now that global-functions requires RouterOS 7.13 anyway.
2024-04-07 22:51:24 +02:00
Christian Hesse
ccfbabde5e
mod/notification-email: clean name for display name
2024-03-12 22:36:29 +01:00
Christian Hesse
c016a6ef47
mod/notification-email: add display name with identity (if not given)
2024-03-12 22:36:29 +01:00
Christian Hesse
9b8d3f7970
mod/notification-email: switch to $LogPrint
2024-03-12 20:37:57 +01:00
Christian Hesse
ed790dea6e
mod/notification-email: remove extra spaces
2024-03-12 15:27:15 +01:00
Christian Hesse
6ad7ca2c1a
mod/notification-email: drop support for old property name
2024-01-30 00:30:32 +01:00
Christian Hesse
9a73fc526f
update copyright for 2024
2024-01-01 15:25:25 +01:00
Christian Hesse
d3611cebbd
mod/notification-email: $NotificationFunctions->"email": support hook for signature
...
You can compose your own signature by creating a function:
:global NotificationEMailSignature do={
:global EitherOr;
:local RouterBoard [ /system/routerboard/get ];
:return ( \
[ $EitherOr ($RouterBoard->"board-name") ($RouterBoard->"model") ] . " s/n " . $RouterBoard->"serial-number" . " | " . \
"RouterOS " . [ /system/package/update/get installed-version ] . " | " . \
"IP " . [ /ip/cloud/get public-address ]);
}
2023-12-05 00:11:19 +01:00
Christian Hesse
e4b10d4b76
mod/notification-email: $QuotedPrintable: also encode question mark
...
Following the RFC it is not required, but looks like Thunderbird has an
issue here...
https://datatracker.ietf.org/doc/html/rfc2045#section-6.7
2023-12-04 12:08:47 +01:00
Christian Hesse
84368ec6eb
mod/notification-email: $QuotedPrintable: minor rework
...
We have to encode all characters from 0x00 to 0x1f as well...
Also the equal sign is nothing special here, just adding to list.
2023-12-04 12:08:47 +01:00
Christian Hesse
a5e2282d0f
mod/notification-email: rename scheduler
2023-11-14 22:34:45 +01:00
Christian Hesse
87b136f3a9
mod/notification-email: handle new property name...
...
... which changed in RouterOS 7.12rc1.
2023-10-06 21:42:00 +02:00
Christian Hesse
9a5d55da0d
mod/notification-email: introduce $PurgeEmailQueue
...
... to purge the queue and remove the scheduler.
2023-08-06 16:35:51 +02:00
Christian Hesse
a1b896a5d3
mod/notification-email: escaping question mark is no longer required
2023-06-27 09:14:36 +02:00
Christian Hesse
9136bf28bd
mod/notification-email: link documentation
2023-04-04 19:24:32 +02:00
Christian Hesse
a832fd04ef
rename scripts and add file extension ".rsc"
...
No functional change for the user... The migration is done
automatically.
2023-03-07 22:26:01 +01:00