RE: Running a shell command on update/creation of an item

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

 



Tom, thanks for the advice, I'll look into it.

I'm actually trying to create a synchronizer for an application that stores
PIM data (calendar, contacts, etc) in an IMAP store. Once I've figured that
part out, it would be an excellent addition to my ticketing system though.

Regards,

Jochem Meijers

-----Oorspronkelijk bericht-----
Van: Tom Samplonius [mailto:tom@xxxxxxxxxxxxxx] 
Verzonden: woensdag 31 januari 2007 08:47
Aan: jochem@xxxxxxxxxxx
CC: info-cyrus@xxxxxxxxxxxxxxxxxxxx
Onderwerp: Re: Running a shell command on update/creation of an item

----- "Jochem Meyers" <jochem@xxxxxxxxxxx> wrote:
> Hi all,
> 
> Currently, I'm trying to build an application involving synchronizing
> some
> data stored in a cyrus imap store (as messages with attachments) to an
> sql
> database. To accomplish this, I would like to have cyrus run a shell
> script
> when a item in it's store is updated or created. The items don't
> arrive
> through the MTA, but rather through a direct connection with the IMAP
> server, so using something like procmail is out of the question.
> Updates
> also need to be caught and processed.
> 
> If this isn't a possibility, I'll have to write an application that
> checks
> the mailbox status periodically and synchronizes if it finds updates,
> but
> for an improved user experience, I'd rather use the above method.
> 
> Thanks in advance for any advice,

  It might be better to use a persistent IMAP connections.  With IDLE
support you can be informed of new deliveries as they occur.  See "idled".
You have to look at the code though.  You probably wouldn't get status
changes though.

  Sounds like you are working on a ticketing system?

Tom



----
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

[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