Re: idled vs. notifyd ?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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
 
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.
----
Cyrus Home Page: http://www.cyrusimap.org/
List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/
To Unsubscribe:
https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus

[Index of Archives]     [Cyrus SASL]     [Squirrel Mail]     [Asterisk PBX]     [Video For Linux]     [Photo]     [Yosemite News]     [gtk]     [KDE]     [Gimp on Windows]     [Steve's Art]

  Powered by Linux