El 15/5/25 a les 13:21, [email protected] ha escrit:
While I'm at it, is there a way to do this in an event-based fashion instead
of with just cronjobs?
You can use notifications by putting in imapd.conf, e.g.
event_notifier: external
notifysocket: /var/run/cyrus/socket/notify
notify_external: /usr/local/bin/trainhamspam
Then you have to write a program (here /usr/local/bin/trainhamspam) to
manage the notifications
(https://www.cyrusimap.org/imap/concepts/features/event-notifications.html)
I have one such program here https://github.com/olivluca/trainhamspam
but of course it only works with my setup.
Bye
--
Luca Olivetti
Tel. +34 935883004 Ext. 3010
https://wetron.es
https://wecobots.com
------------------------------------------
Cyrus: Info
Permalink:
https://cyrus.topicbox.com/groups/info/T7b136544089b75ba-Mb4dd142efdf06045e609ffb8
Delivery options: https://cyrus.topicbox.com/groups/info/subscription