At Tue, 20 Oct 2009 19:36:24 +0200, Xavier Bestel <xavier.bestel@xxxxxxx> wrote: Subject: Exec'ing a script from Cyrus when imapd has a client > > I have a small install with cyrus-imapd 2.3.14, which reads some of its > mails with fetchmail. To limit the delay in mail delivery, fetchmail > awakes each minute to get mails. > What I would like is let fetchmail do that only when there's a client > actually reading its mails, i.e. an MUA actually connected to imapd. I don't get it. Are you saying you are using fetchmail to inject messages into a locally running Cyrus install which you then connect to with a locally running IMAP MUA? Maybe you should just eliminate fetchmail from the picture and then see if things make more sense. Just point your MUA at the originating IMAP server and eliminate everything in between. If you're using an IMAP capable client, and you're using IMAP to read your e-mail, then you don't need or want fetchmail -- it's just a rather nasty old hack for the days before IMAP. Personally I think the last usable copy of fetchmail should be archived away on an ancient 9-track magnetic tape reel and put behind a little glass door which has "Break glass in case of emergency" written on it. Everything is ever so much easier and simpler if you can just eliminate all the unnecessary complexities, such as fetchmail. (if you want to keep a copy of your messages on your local machine, then you can and should probably just use your MUA to do that) -- Greg A. Woods +1 416 218-0098 VE3TCP RoboHack <woods@xxxxxxxxxxx> Planix, Inc. <woods@xxxxxxxxxx> Secrets of the Weird <woods@xxxxxxxxx> ---- 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