Hi, Thank you for all the answers. I was not aware of many of these internal IMAP details.
Taskbar count is now implemented passive, so it doesn't trigger any checks, it just counts numbers that mailboxes already have. I'd stick with this solution, so recursive check is cheap. With this solution if mailbox has unread items it triggers taskbar count update, not the other way. After your responses, I'm convinced to opt-in with one default: INBOX. Subscribed status will not matter. Selected folders are stored in configuration in a list. To summarise: - passive check as it is right now, no connection triggers and no changes to current model, - recursive check and match by mailbox name, - opt-in with one default: INBOX, - chosen folders are stored in configuration, - in GUI, option on every folder to include it with taskbar count. Please post if you're not satisfied with this solution and it can be improved. Regards, Tomasz Kalkosiński 2014/1/9 Stephan Platz <troj...@paalsteek.de> > Hi, > > > On Wednesday, January 8, 2014 10:53:21 PM CET, Jan Kundrát wrote: > >> On Wednesday, 8 January 2014 22:04:48 CEST, Thomas Lübking wrote: >> >>> Subscribed seems to inflexible (categorizing mailboxes where you just >>> move stuff by hand) >>> >> >> I guess I can accept the patch goeing without "all subscribed" as well. I >> don't care. >> > > I care :). > > > The fact that most servers do limit the number of parallel connections is >> sad, but it's a reality (it's not only GMail; Dovecot's default is at 10 as >> well, and I suspect that other servers do the same). What people do not >> realize is that having 50 connections in IDLE is potentially much better >> than 5 connections SELECTing a mailbox every minute. >> > > Dovecot can't even be configured to accept more than 50 simultanious > connections. With my mobile phone I sometimes have 50 broken TCP > connections and then I have to wait for the TCP timeout (30 minutes) before > I can login again. A nice solution here is the NOTIFY extension which is > not supported by many mail servers yet. > > Greetings, > Stephan >