Re: [Dovecot] IDLE with inotify problem

2007-09-22 Thread Michael Guntsche
On Sep 22, 2007, at 16:55, Timo Sirainen wrote: On Tue, 2007-08-14 at 22:03 +0200, Michael Guntsche wrote: Hmm. I guess this could be changed to v1.0 as well: http://hg.dovecot.org/dovecot-1.0/rev/afb48abd91c0 Hi Timo, Just installed a patched 1.0.5 version and it works like a charm now.

Re: [Dovecot] IDLE with inotify problem

2007-09-22 Thread Timo Sirainen
On Tue, 2007-08-14 at 22:03 +0200, Michael Guntsche wrote: > On Aug 13, 2007, at 13:49, Timo Sirainen wrote: > > > What IMAP client do you use? Currently Dovecot works like: > > > > - IDLE starts > > - if maildir changes, the new changes are reported immediately > > - if client doesn't break fr

Re: [Dovecot] IDLE with inotify problem

2007-08-14 Thread Michael Guntsche
On Aug 13, 2007, at 13:49, Timo Sirainen wrote: What IMAP client do you use? Currently Dovecot works like: - IDLE starts - if maildir changes, the new changes are reported immediately - if client doesn't break from IDLE, continue.. - if maildir changes before maildir_idle_check_interval se

Re: [Dovecot] IDLE with inotify problem

2007-08-13 Thread Michael Guntsche
Hello Timo, On Aug 13, 2007, at 14:15, Michael Guntsche wrote: Maybe this can be changed that it does not take the interval into account of it uses inotify, dnotify or kqueue. My workaround for now is to set the timeout to 1. I thought about a simple way to implement this. mailbox_notify_

Re: [Dovecot] IDLE with inotify problem

2007-08-13 Thread Michael Guntsche
On Aug 13, 2007, at 13:49, Timo Sirainen wrote: What IMAP client do you use? Currently Dovecot works like: - IDLE starts - if maildir changes, the new changes are reported immediately - if client doesn't break from IDLE, continue.. - if maildir changes before maildir_idle_check_interval se

Re: [Dovecot] IDLE with inotify problem

2007-08-13 Thread Timo Sirainen
On Sun, 2007-08-12 at 17:20 +0200, Michael Guntsche wrote: > Hi, > > I recently switched from courier imap to dovecot. With courier I had > a working IDLE setup that informed me immediately when new mail > arrived. With Dovecot it is different, sometimes i get an immediate > result but most

Re: [Dovecot] IDLE with inotify problem

2007-08-13 Thread Johannes Berg
On Sun, 2007-08-12 at 17:20 +0200, Michael Guntsche wrote: > So my question is can I check that dovecot is actually using inotify? You can strace it or put a few print statements into the code. johannes signature.asc Description: This is a digitally signed message part

Re: [Dovecot] IDLE with inotify problem

2007-08-13 Thread Bruce Bodger
On Aug 12, 2007, at 1:00 PM, Michael Guntsche wrote: Running Dovecot 1.0.3 on OS X 10.4.10 here. Which --with-notify compile time option would you suggest? dnotify, inotify, kqueue, or none. You should use kqueue under macosx since dnotify and inotify are linux only. Thanks for that,

Re: [Dovecot] IDLE with inotify problem

2007-08-12 Thread Michael Guntsche
On Aug 12, 2007, at 18:33, Bruce Bodger wrote: On Aug 12, 2007, at 11:20 AM, Michael Guntsche wrote: So my question is can I check that dovecot is actually using inotify? Which brings me to another question for Timo.. Running Dovecot 1.0.3 on OS X 10.4.10 here. Which --with-notify compi

Re: [Dovecot] IDLE with inotify problem

2007-08-12 Thread Bruce Bodger
On Aug 12, 2007, at 11:20 AM, Michael Guntsche wrote: So my question is can I check that dovecot is actually using inotify? Which brings me to another question for Timo.. Running Dovecot 1.0.3 on OS X 10.4.10 here. Which --with-notify compile time option would you suggest? dnotify, inotif

[Dovecot] IDLE with inotify problem

2007-08-12 Thread Michael Guntsche
Hi, I recently switched from courier imap to dovecot. With courier I had a working IDLE setup that informed me immediately when new mail arrived. With Dovecot it is different, sometimes i get an immediate result but most of the time it takes a rather long time for the notification to retu