Problem with IMAP Server and Header Cache

Kevin J. McCarthy kevin at 8t8.us
Wed Jan 25 23:33:21 UTC 2023


On Wed, Jan 25, 2023 at 10:13:58PM +0100, Christian Brabandt wrote:
>No. I mean it happens whenever mutt quits (or has been forcefully
>shutdown).
>
>Sometimes I also notice a normal quit takes very long (I assume it
>somehow writes/updates the header cache and this may also take a while?)
>
>I can "fix" it by manually deleting the header cache, but then mutt
>starts loading all those messages again and it again takes a bit until
>the mailbox is open.

Hmmm... I see in the log that even in the "working" case it's taking a 
good 15 seconds to load in the messages from the seqset/header cache. 
It's a big mailbox, though, so maybe that's to be expected.

I noticed you are using 1.13.2.  Are you in a position to try building a 
newer version of mutt?  There have been several important fixes to 
QRESYNC since then (including a bug in the seqset iterator).  It doesn't 
*look* like that's the issue here, but it would still be a good idea to 
try 2.2.9 if possible.

While you are at it, you might also try building with a different header 
cache backend.  Perhaps tokyocabinet is having issues.  I would suggest 
kyotocabinet or perhaps lmdb and see how they work.

On ubuntu, just run
   $ sudo apt build-dep mutt
   $ sudo apt install libkyotocabinet-dev liblmdb-dev
   $ ./configure --enable-compressed --enable-debug --enable-fcntl \
        --enable-hcache --enable-gpgme --enable-imap --enable-smtp \
        --enable-pop --enable-sidebar --with-curses --with-gnutls \
        --with-gss --with-idn --with-sasl \
        --with-kyotocabinet      (or --with-lmdb)
   $ make
   $ sudo make install

-- 
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/20230125/38b97aae/attachment.asc>


More information about the Mutt-users mailing list