Plugging into the imap system

Alain Spineux aspineux at gmail.com
Thu Dec 20 07:17:36 EST 2007


On Dec 20, 2007 11:24 AM, Gabriele Bulfon <gbulfon at sonicle.com> wrote:
>
>
> Hello,
> I would like to know if there is some way of plugging into the system with
> custom agents to be notified of any event happening on the imap server.
> For example, I would like some code of mine to be called when new messages
> are: written into mailboxes, deleted from mailboxes, modified etc. etc.
>
> The main reason for this is to implement a synchronization code.
> We're using the cyrus imap server not only for mails but also for other
> informations stored as attachments into emails (agenda events, contacts and
> others) into specific folders, and these objects are handled by client
> softwares.
> It would be great to be able to implement our servers with add on software
> of ours being able to intercept objects modifications and mantain event
> synchronization informations (for example to deliver the same data to mobile
> devices).

IMAP protocol contains already some interesting features.
You can write a imap client that will do all your stuff.
At startup you progarm can read and handle all "UNSEEN" mails, then go in IDLE
mode and wait for the server to wake it up when something append in
the mailbox !

Python, Perl and PHP have powerful IMAP library !

Regards.

>
> Thanx for any help
> Gabriele Bulfon.
>
>
>
>  Gabriele Bulfon - Sonicle S.r.l.
>  Tel +39 028246016 Int. 30 - Fax +39 028243880
>  Via Felice Cavallotti 16 - 20089, Rozzano - Milano - ITALY
>  http://www.sonicle.com
> ----
> Cyrus Home Page: http://cyrusimap.web.cmu.edu/
> Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki
> List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html
>



-- 
Alain Spineux
aspineux gmail com
May the sources be with you


More information about the Info-cyrus mailing list