Skip to content

Commit

Permalink
fix postponed sorting assertion failure
Browse files Browse the repository at this point in the history
The Postponed Dialog doesn't support sorting.

We use a MailboxView to hold the Mailbox and number the Emails.
The MailboxView tries to sort the Emails and fails.
The assertion check isn't necessary.

---

Steps to reproduce:
    Create a mailbox 'p.mbox' with some emails in it.

test.rc
    set postponed   = p.mbox
    set sort        = threads
    set use_threads = threads

Run:
    ./neomutt -n -F test.rc -p
  • Loading branch information
flatcap committed Dec 6, 2024
1 parent 311dd98 commit 38259ea
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion mutt_thread.c
Original file line number Diff line number Diff line change
Expand Up @@ -796,7 +796,6 @@ static void mutt_sort_subthreads(struct ThreadsContext *tctx, bool init)
if ((c_sort & SORT_MASK) == EMAIL_SORT_THREADS)
{
ASSERT(!(c_sort & SORT_REVERSE) != reverse);
ASSERT(cs_subset_enum(NeoMutt->sub, "use_threads") == UT_UNSET);
c_sort = c_sort_aux;
}
c_sort ^= SORT_REVERSE;
Expand Down

0 comments on commit 38259ea

Please sign in to comment.