~emersion/alps#80: 
Folder actions often throw invalid message set

Tried deleting from Archive; Tried archiving a message from Inbox Tried composing and then clicked on Inbox, was stuck in a loop with the same error:

failed to fetch message list: Error in IMAP command FETCH: Invalid messageset (0.001 + 0.000 secs).

Status
RESOLVED FIXED
Submitter
~migadu
Assigned to
No-one
Submitted
1 year, 6 months ago
Updated
1 year, 5 months ago
Labels
bug

~migadu 1 year, 6 months ago

Seems UID list gets messes up an kept in cache?

~migadu 1 year, 6 months ago

We also get sometimes a deadlock where only restart of the webmail server helps. Trying to figure out when it happens.

~emersion 1 year, 6 months ago

Are you running with the latest commit (5fee600c6ef8d7467a394ef04dbf9aa681cb540b)?

~emersion 1 year, 6 months ago

For deadlocks, can you build with the -race flag (go run -race ./cmd/koushin)? And when it's locked, please press Ctrl+\ to get a backtrace.

Please open a separate issue for the deadlock, it's unrelated to this issue.

~migadu 1 year, 6 months ago

yes

commit 5fee600c6ef8d7467a394ef04dbf9aa681cb540b (HEAD -> master, origin/master, origin/HEAD) Author: Drew DeVault sir@cmpwn.com Date: Wed May 13 14:48:02 2020 -0400

alps theme: theme the login page

~emersion 1 year, 6 months ago

Hmm, I can't reproduce. Can you try to reproduce with -debug? (go run ./cmd/koushin -debug ...)

~z3ntu 1 year, 6 months ago

I'm seeing the same issue with my mailserver. Here's the output with -debug:

-O7D7w UID MOVE 10163 "Archive"
* OK [COPYUID 1562100430 10163 14265] Moved UIDs.
* 24 EXPUNGE
-O7D7w OK Move completed (0.016 + 0.000 + 0.015 secs).
2020-05-21T21:50:15Z method=POST, uri=/message/INBOX.postmarketOS/move, status=302
BhcCxw LIST "" "*"
* LIST (\HasNoChildren) "." Trash
* LIST (\HasNoChildren \UnMarked) "." Drafts
* LIST (\HasNoChildren) "." Archive
* LIST (\HasNoChildren) "." Spam
* LIST (\HasNoChildren) "." Sent
* LIST (\HasNoChildren) "." INBOX.postmarketOS
* LIST (\HasChildren) "." INBOX
BhcCxw OK List completed (0.001 + 0.000 secs).
5J22ZA FETCH 1:35 (FLAGS ENVELOPE UID BODYSTRUCTURE)
5J22ZA BAD Error in IMAP command FETCH: Invalid messageset (0.001 + 0.000 secs).
2020-05-21T21:50:15Z ERROR failed to fetch message list: Error in IMAP command FETCH: Invalid messageset (0.001 + 0.000 secs).
2020-05-21T21:50:15Z method=GET, uri=/mailbox/INBOX.postmarketOS?page=0, status=500

~emersion REPORTED FIXED 1 year, 5 months ago

Ah, got it! Fixed in 522454e00986.