On Wednesday, 8 January 2014 22:04:48 CEST, Thomas Lübking wrote:
I'd vote for opt-in with INBOX preselection, because of ...

Yes, I haven't realized that this is essentially just a matter of a sane default -> I'm OK with removing the option "just INBOX" from the list.

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.

To monitor several mailboxes, you'll likely want to idle them, what means you need "n" connections for "n" monitored mailboxes. You'll very quickly figure that "some" (not pointing any company in mountainview here - never!) E/MSPs will easily disconnect you if they feel you're holding "too many" connections from the same IP (i apparently don' even get a BYE...)

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.

Anyway, right now, Trojita only uses a single connection. The code is ready for more and will handle it just fine, but I didn't have time for enabling it and adding tweaks like "always leave one connection idling in INBOX". Patches welcome, but I suspect this needs more testing. Code which controls this is at Model::findTaskResponsibleFor(TreeItemMailbox *mailboxPtr) in src/Imap/Model/Model.cpp.

All visible (=shown to the user) mailboxes are therefore polled (unless offline or in the expensive mode) every 5 minutes via the STATUS command -- see Model::invalidateAllMessageCounts and the Model::m_periodicMailboxNumbersRefresh.

Cheers,
Jan

--
Trojitá, a fast Qt IMAP e-mail client -- http://trojita.flaska.net/

Reply via email to