Re: Exec'ing a script from Cyrus when imapd has a client

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

 



On Tue, Oct 20, 2009 at 10:56:42PM +0200, Xavier Bestel wrote:
> Hi,
> 
> Le mardi 20 octobre 2009 à 22:22 +0200, steffo76@xxxxxx a écrit :
> > maybe logsurfer (or something similar) would be of help, you could
> > monitor your cyrus logs with it and run fetchmail accordingly:
> > 
> > http://www.crypt.gen.nz/logsurfer/
> > http://sourceforge.net/projects/logsurfer/
> 
> That may be an answer, yes. However I'd have preferred if the signal
> came from Cyrus directly (I think it'sa more robust solution).

Log watching is actually pretty good - but another option is to monitor
the $conf/proc/ directory.  When someone is connected there will be a
file in there with their username and what folder they currently have
selected.

Your cron job could just grep that folder and run if there was a file
with the required username present.

[brong@imap1 proc]$ grep brong *
31327:web6.internal [10.202.2.215]	brong	user.brong

Getting Cyrus to actually trigger something is much more complex - but
you could easily do something with an inotify on the directory if you
want smaller than a minute resolution.

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