Re: IMAP check options
- From: "M . Thielker" <balsa t-data com>
- To: Balsa List <balsa-list gnome org>
- Subject: Re: IMAP check options
- Date: Sun, 12 Aug 2001 10:20:00 +0200
On 2001.08.12 08:59 Peter Bloomfield wrote:
> However, STATUS (or NOOP) requests are *still* sent to the IMAP server,
> all IMAP mailboxes, regardless of their settings--you can verify this by
> dumping the tcp traffic. They are sent by imap_mailbox_check, which is
> called from mutt_buffy_check, from libbalsa_notify_start_check, from
> check_messages_thread in src/main-window.c (if BALSA_USE_THREADS is
> defined). The calling code isn't conditional on the settings of
> balsa_app.check_imap or balsa_app.check_imap_inbox.
> The attached patch, against today's CVS tree, represents a first cut at
> fixing things (offered for discussion only). The libmutt code is passed a
> callback that tests whether or not to issue the STATUS request. All
> comments and suggestions welcome.
Thanks for that patch, it does just what it's supposed to do. But the need
for this patch poses another question: Why is STATUS sent twice, anyway?
This nicely matches up with complaints from other users about slow IMAP
checks and downloads, there seems to be some redundant code here. It may be
an option to disable one of those STATUS requests by default, because one is
enough! There is no need to send STATUS twice for each mailbox, but that is
exactly what would happen if I read that code right.
I believe there was an email asking this once before, but it went unanswered
back then. Someone had found out that 2 STATUS requests were being sent per
box and was asking why. Well, why? Who wrote that code, what's the reason?
] [Thread Prev