Saving Drafts with Roundcube marks old Mails in INBOX as unread.

Sami Ketola sami.ketola at dovecot.fi
Wed Apr 4 11:19:53 EEST 2018



> On 4 Apr 2018, at 10.59, sk at tyrion.de wrote:
> 
> Hello List,
> 
> 
> I have a problem with the client Roundcube. Whenever I save a draft to the Folder INBOX.Drafts a old mail in my INBOX will be marked as unread.
> 
> Here are the IMAP Logs from Roundcube and Dovecot debug logs. I have no idea why it happens. The IMAP protocol looks normal to me but as you can see in the second to last line in the Dovecot log Dovecot is changing the flag of an old E-Mail in INBOX that has the same UID as the Mail that was just created in INBOX.Drafts.
> 
> 
> [03-Apr-2018 09:50:03 +0200]: <6c472a00> [8095] S: A0006 OK [APPENDUID 1506921305 58] Append completed (0.001 + 0.042 secs).
> [03-Apr-2018 09:50:03 +0200]: <6c472a00> [8095] C: A0007 SELECT INBOX

Here roundcube SELECTs INBOX again

> [03-Apr-2018 09:50:03 +0200]: <6c472a00> [8095] S: * FLAGS (\Answered \Flagged \Deleted \Seen \Draft Junk $MDNSent)
> [03-Apr-2018 09:50:03 +0200]: <6c472a00> [8095] S: * OK [PERMANENTFLAGS (\Answered \Flagged \Deleted \Seen \Draft Junk $MDNSent \*)] Flags permitted.
> [03-Apr-2018 09:50:03 +0200]: <6c472a00> [8095] S: * 682 EXISTS
> [03-Apr-2018 09:50:03 +0200]: <6c472a00> [8095] S: * 0 RECENT
> [03-Apr-2018 09:50:03 +0200]: <6c472a00> [8095] S: * OK [UNSEEN 48] First unseen.
> [03-Apr-2018 09:50:03 +0200]: <6c472a00> [8095] S: * OK [UIDVALIDITY 1506921304] UIDs valid
> [03-Apr-2018 09:50:03 +0200]: <6c472a00> [8095] S: * OK [UIDNEXT 881] Predicted next UID
> [03-Apr-2018 09:50:03 +0200]: <6c472a00> [8095] S: A0007 OK [READ-WRITE] Select completed (0.000 + 0.000 secs).
> [03-Apr-2018 09:50:03 +0200]: <6c472a00> [8095] C: A0008 UID STORE 58 -FLAGS.SILENT (\Seen)

And here roundcube removes \Seen flag from mail UID 58

so it's roundcube that removes the \Seen flag, effectively making the mail unseen again. Seems like roundcube bug.

Sami



More information about the dovecot mailing list