modoboa-webmail icon indicating copy to clipboard operation
modoboa-webmail copied to clipboard

Inbox unread count

Open msssltd opened this issue 8 years ago • 4 comments

The unread message count on the sidebar seems to be easily confused. The mailbox I set up for testing is consistently showing (1) when the mailbox is empty.

Is there any way to manually set the count to zero? I had a look at the Postgres modoboa tables but could not find anything obvious.

msssltd avatar Jun 21 '17 17:06 msssltd

@msssltd the counter is known to be buggy but in your cases, I guess you do not have expunged you mailbox? (try to compress it)

tonioo avatar Jun 22 '17 13:06 tonioo

Thanks for the suggestion @tonioo.

I got to the bottom of this in the end. One of my tests was to telnet to the server on port 25 and send a mail by typing SMTP commands in the console. In this case the headers are incomplete and the mail is caught by amavis. Releasing the message to the inbox, using the webmail front end, causes the inbox unread counter to increment but the message is hidden within the webmail client. I was able to read the message and correct the counter, using a traditional client/server IMAP client (Apple mail).

msssltd avatar Jun 22 '17 14:06 msssltd

i got sometimes a '-1' thats also funny

genofire avatar Mar 18 '18 09:03 genofire

Faulty behaviour here, too. When I have a bunch of new test mails in my inbox and I delete them, the counter grows negatively, see screenshot. Only when I change folders and return to inbox, the counter is correctly computed.

modoboa-neg-mailbox

fedi-will avatar Oct 15 '22 10:10 fedi-will