Re: [Mutt] #3408: Progress indicator when closing/changing mailbox.
#3408: Progress indicator when closing/changing mailbox.
-------------------------+--------------------------------------------------
Reporter: vext01 | Owner: mutt-dev
Type: enhancement | Status: new
Priority: major | Milestone:
Component: mutt | Version:
Keywords: |
-------------------------+--------------------------------------------------
Comment(by vext01):
I have spent some time tracking down where the time is spent. It seems
that a lot of time is spent in the imap_exec() call on line 1275 of
imap/imap.c, within imap_sync_mailbox().
Mutt seems to spend ages here when changing folder, when the folder you
are leaving:
a) has a lot of new messages in, and b) the header cache is not fresh.
By b), I mean, in my tests, deleting the header cache altogether and
allowing mutt to create a fresh one does not cause mutt to spend that much
time in the imap_exec() call on line 1275. The header cache must be old
and have lots of new messages since the mailboxes last open. Perhaps a
developer can lend some insight as to why this is?
Unfortunately, there is no counter in the code here which could have been
used as a basis for a progress indicator. A mutt_message("Syncing
mailbox...") at the top of imap_sync_mailbox() would be better than
nothing, however, it can look like mutt has crashed, when really it is
just taking a long time.
Ideas/Comments?
--
Ticket URL: <http://dev.mutt.org/trac/ticket/3408#comment:1>
Mutt <http://www.mutt.org/>
The Mutt mail user agent