idled vs. notifyd ?

Robert Norris robn at fastmail.fm
Mon Dec 15 17:28:06 EST 2014


On Tue, 16 Dec 2014, at 09:09 AM, Patrick Goetz wrote:
> I hope I got that right. The SMS/XMPP thing could be useful if it were
> documented. I'm not sure I'm seeing the utility of the sievenotifier
> setting (send an email to let you know an email has been sent?).

Its useful if you want to notify another address that a message arrived.
FastMail's notifyd allows extra options like summarising the email.
Imagine sending it through to bridging service like IFTTT.

But yes, the SMS and IM options are far more useful.

> I still have no idea how the Fastmail notifyd

This part is the same, just with more options. The various notify
options we have are documented here:

https://www.fastmail.com/help/technical/sieve.html[1]

> works or how this is integrated with calendar functionality.

Calendar notifications are generated through mboxevents, which still
arrive via the notifyd channel but with a slightly different format.
The event has all the information about the calendar item in it, and
we use that to create an email or generate an eventsource push to the
web client.

https://github.com/brong/cyrus-imapd/blob/fastmail/imap/mboxevent.c#L146
https://github.com/brong/cyrus-imapd/blob/fastmail/imap/mboxevent.c#L858

For the alarms themselves, we keep a global database of the "next" alarm
for each item, which gets updated when a calendar item is saved. There's
a separate daemon (calalarmd) which periodically processes this database
and sends the mboxevents.

https://github.com/brong/cyrus-imapd/blob/fastmail/imap/caldav_alarm.c
https://github.com/brong/cyrus-imapd/blob/fastmail/imap/calalarmd.c

mboxevents are in Cyrus master (unsure about 2.4, I've never actually
looked at it) and of course calendar support is there. The alarm support
is (currently) specific to the FastMail branch. And yes, this is all
woefully undocumented.

I am being a little vague about all of this because I'm not quite sure
if you're just curious or seriously looking to hack on or deploy this.
If you ask specific questions we'll try to help out :)

Cheers, Rob N.


Links:

  1. https://beta.fastmail.com/help/technical/sieve.html?u=220c412f
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.andrew.cmu.edu/pipermail/info-cyrus/attachments/20141216/052527c2/attachment.html 


More information about the Info-cyrus mailing list