Package: mutt
Version: 1.10.1-2.1

Tested with Ubuntu 19.10. I already submitted a bug to Launchpad,
but since Ubuntu has no active maintainer for mutt and just uses
the Debian package, I was asked to submit the bug here as well.

I use mutt to read mails from an IMAP server.

My .muttrc contains two lines that I assume to be relevant for this bug:

set header_cache = '~/.muttcache'
set sort = mailbox_order

Expected behaviour:

My mailbox should be unsorted (i.e. all messages appear in the same
order as provided by the IMAP 'fetch 1:*' command).

Observed behaviour:

Messages that are already cached (part of the header cache file) are
sorted in two groups:

1. all messages without the Deleted flag
2. all messages with the Deleted flag

New messages (not part of the cache file) appear at the bottom
(after the deleted messages), so there's a block of deleted messages
between the last cached not deleted message and the first new message.

When I delete the header cache file (or disable header caching)
before starting mutt, everything works as expected (mails are unsorted).

Link to the original bug report:
https://bugs.launchpad.net/ubuntu/+source/mutt/+bug/1851124

Reply via email to