[Dovecot] imap idle on non-inbox?
Can this be done with dovecot? I really like the imap idle feature, but it doesn't work for me because I sort my mail into folders with procmail, so it only notifies me when one drops into inbox and not a subfolder.
Is there just an option for this I'm missing, or does support for this not exist yet?
Also, I don't think its a client issue as I watched the traffic with tcpdump and it only announced anything for inbox, messages dropping into other folders caused no traffic.
Collin Grady
BOFH excuse #347:
The rubber band broke
I would appreciate this feature as well. Because i am using postfix relaying with permit_tls_clientcerts and it just checks the fingerprints of the certs. It find it far more convenient than using something like pam and authorising with user accounts. Postfix can use this features also in combination with normal sasl methods. < Using OpenSSL for authentication brings
Regards Jan
Timo Sirainen wrote:
I understand. But please, keep it in mind for later versions of dovecot!
On 9.5.2004, at 00:38, jan@weitan.org wrote:
I've been thinking about doing this lately as well. Shouldn't really be much of a job. Just tell OpenSSL library to require a valid client certificate. Optionally also force the cert's common name to be client's login name.
I think it would still be a good idea to use passwords as well. Wasn't the one OpenSSL hole a year ago exploitable only with servers requiring client certificates?..
Maybe the passwordless authentication would work just by keeping password fields empty in password database? Or maybe I'll just create a new "nocheck" passdb. EXTERNAL SASL mechanism would also be useful for this.
Closed except from a few IPs :)
On 18.10.2004, at 19:21, Johannes Berg wrote:
Well, I don't think Dovecot is ready yet to have that feature. Currently you'd have to do some ugly things to figure out what mailboxes to keep checking, and the checking itself might not be pretty. You could write such plugin to do that of course. Shouldn't be too difficult.
In my not-so-near-future plans I've been thinking about creating some kind of mailbox list index which would be updated every time mailboxes change. Checking changes from a single file should be pretty fast (and it would make STATUS faster as well).
Anyway .. How is that feature useful with offlineimap? And why couldn't you implement it by just making it send STATUS for each mailbox every few minutes? Without the mailbox index that's pretty much the way it would have to be done in Dovecot internally (unless you use dnotify with maildir).
On Tue, 2004-10-19 at 02:22 +0300, Timo Sirainen wrote:
Actually, I misunderstood what you were saying. What I'm looking for is a notification when dovecot detects a new email. For some reason I thought it might be RFC-conforming to send an untagged STATUS on changes, even if the client didn't explicitly ask for it. But that probably just shows my ignorance of the IMAP RFC.
The point is that offlineimap is nice for the first sync, but all syncs after that are horribly slow because it keeps rescanning all (big) folders. Since I am sync'ing between two dovecots (one local, one on the mail server) I figured it'd be far more efficient if offlineimap just waited to see if any of them reported any changes somewhere and then propagated those to the other side.
Probably just confused, johannes
On 22.10.2004, at 18:40, Johannes Berg wrote:
It is allowed, it's just not very easy to implement.
You could do the "waiting" by polling all the available mailboxes with eg. STATUS (MESSAGES NEXTUID) every few minutes. If either of those values changed since last check, it would indicate something happened to the mailbox. Dovecot should reply to the STATUS commands fast if nothing has changed.
Requires no modifications to Dovecot and works with all IMAP servers :)
participants (5)
-
Collin Grady
-
jan@weitan.org
-
Johannes Berg
-
Nicolas STRANSKY
-
Timo Sirainen