why does mutt take so long to load my python folder?

Kevin J. McCarthy kevin at 8t8.us
Wed Nov 16 04:10:14 UTC 2022


On Wed, Nov 16, 2022 at 11:43:39AM +1100, Cameron Simpson wrote:
>The stuff before the "Sorting mailbox..." phase seems ... fast enough.
>
>During the "Sorting mailbox..." phase I see mutt reading message files 
>I'd not expect it to need to touch, _and_ making some temporary files.  
>Example `lsof` output:

Note the 'Sorting mailbox...' is actually displayed post-sorting too. 
You could try adding a mutt_message() after the sort to see if that 
helps clarify where the slowdown is.

>That `cur` message file dates from 2021-07-15 17:36:10 GMT (long ago) 
>and the temporary file is indeed temporary - it vanishes. I speculate 
>that mutt's... unpacking the source message in some way?

Seems likely, but off the top of my head I can't guess what's doing it. 
Pre-sorting, $maildir_header_cache_verify will cause a re-read if the 
file stat is more recent than the value in the header cache.  But that 
shouldn't persist.

Sorting itself shouldn't be reading messages.

Have you tried adding '-e set sort=mailbox-order' to the command line to
see the difference in time?

You may also want to pare your muttrc file down to make sure something 
else isn't causing the issue.  e.g. scoring, or coloring or some such..

-- 
Kevin J. McCarthy
GPG Fingerprint: 8975 A9B3 3AA3 7910 385C  5308 ADEF 7684 8031 6BDA
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://lists.mutt.org/pipermail/mutt-users/attachments/20221115/33ea613b/attachment.asc>


More information about the Mutt-users mailing list