Russell Jackson wrote:
> Xavier Bestel wrote:
>> Hi,
>>
>> 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.
>>
>> So, my question: how to hook a script each time a client
>> connects/disconnects from imapd ?
>>
> 
> Check /var/imap/proc for files. If any are present, then a client is 
> connected. Write a
> polling script to run out of cron that checks for this and runs fetchmail if 
> appropriate.
> I'll let other's comment on the soundness of this.
> 

Opps. Didn't see that second sub-thread that said pretty much the same exact 
thing already.


-- 
Russell A. Jackson <r...@csub.edu>
Network Analyst
California State University, Bakersfield

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

Reply via email to