Commit graph

10 commits

Author SHA1 Message Date
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