Does it matter, if the keyword-files do not match?
In one of the two folders is the content of dovecot-keywords
0 $label3 1 Junk 2 NonJunk
in the other folder:
0 $label3 1 NonJunk 2 Junk 3 redirected 4 $label2 5 $label4 6 Seen
As i said, i use $labes[1-4] from thunderbird. And i use as MUA Thunderbird, Androids Gmail-App, Horde webmail, somtimes samsungs mail-app on android, k9mail on android (not now), and evolution from gnome. But... the Filename loses the S, when copying the file to another folder with all of the mailclients. As i showed you.
I also deactivated all of the sievescripts in dovecot (i have some before, some after, the two for setting and removing Junk and \seen as described at the begin of this thread, and user-sieve-scripts), and dovecot again sets a moved message to unread and recent...
I also tested it for another user. The same.
And it is ONLY the Seen-Flag, which does not work on setting it via sieve. Or maybe, setting a message as \Recent removes the \Seen-Flag? And dovecot sets every new message in a folder to \Recent, independend where it comes from??? Sorry, I'm not a programmer ;-)
But i try to describe it as good as possible, what i can see on my machine.
Hopefully i have time to setup a second mailserver for testing-purpose, to test, what's going on. Is it the rest of kopano, which shits into my dovecot, or some misconfiguration, or the ldap-connection?
There is exim4, which pipes the emails to /usr/lib/dovecot/deliver
But when i move emails around from one imap-folder to another one, there is no exim...
The other thing is (as shown in a mail before), i have rspamd, to which i pipe messages, when i move them from Junk to anywhere - learning ham, and move them from anywhere to Junk - learning spam. This process only sends a copy of the already moved message to rspamc...
The filesystem has read/write permissions for vmail:vmail, which i user for the mailboxes and dovecot-process...
For me, it looks like when dovecot copys or put a message to a folder, it sets it default to unseen and recent. Is there maybe an option, which has influence for this behaviour?
And i do not move messages directly on filesystem with cp, mv or other filesystemtools.
Jakob
Am 05.12.18 um 01:21 schrieb Ralph Seichter:
- Jakobus Schürz:
1543935543.M447415P13997.mymail,S=726,W=748:2,Sa
Then i move this email to another IMAP-Folder, and then there is the filename
1543935543.M447415P13997.mymail,S=726,W=748:2,
As expected, the seen-flag disappeared... the same as thunderbird shows. And what about the "dovecot-keywords" files in both folders? Do they match? The letter "a" seems to indicates that there is at least one non-standard flag defined in the source folder's keywords. By the way, can I assume you move messages only by using Thunderbird/IMAP and not by manipulating the file system?
Here's how things look on my server:
# On arrival (UNSEEN) 1543968031.M941319P5841.foo,S=1390,W=1422:2, # After reading (SEEN) 1543968031.M941319P5841.foo,S=1390,W=1422:2,S # After being moved to another folder (SEEN) 1543968031.M941319P5841.foo,S=1390,W=1422:2,S
I can use IMAP search terms SEEN and UNSEEN as indicated above, and I see the same message state displayed in Notmuch mail (my default, it accesses Dovecot's Maildir storage directly) and various IMAP clients connecting to Dovecot. Things are working just fine here.
-Ralph