Per the maildir standard, *any* flag other than \Recent automatically moves you 
from new/ to cur/. Thus this new flag for attachment status breaks the old 
flow. Sure, IMAP or whatever can cover for this by specifically keying on the 
\Seen flag to convey read status (which it *does* do), but there's still plenty 
of scripts/customers out there that rely on the old maildir behavior to 
implement their own filtering or whatever. This breaks those people's long 
standing assumptions, thus you get angry customers sending support tickets 
demanding to fix this :)

Cheers,
--
Thomas "Andy" Baugh | Software Development Engineer IV
[email protected]
http://www.webpros.com/

________________________________________
From: Klaus Tachtler via dovecot <[email protected]>
Sent: Tuesday, January 13, 2026 2:00 AM
To: [email protected] <[email protected]>
Subject: Re: Dovecot 2.4.2: How to fix maildir incoming mails going to cur/ 
instead of new/

Hello Andy,

Do you need new emails to land in the new folder and not immediately
in the cur folder, since they are marked as new by the flag?

Wouldn't it be better to have the emails in the cur folder but still
marked as new emails?


Best regards,
Klaus.


> Add the following to dovecot.conf if you use maildir:
>
> # Disable the maildir breaking default behavior of
> # mail_attachment_detection_options, as setting ANY flag forces you
> out of new/
> # and into cur/
> mail_attachment_detection_options =
>
> ..and voila, maildir works as it previously did. This is *hinted* to
> in the migration guide document, as the old default value was shown
> as blank in the table, but I didn't figure it out till reading
> through the source code to find what was adding the 'a' flag to all
> incoming mails (thus forcing them out of new, as any flag does this).
>
> Cheers,
> --
> Thomas "Andy" Baugh | Software Development Engineer IV
> [email protected]
> _______________________________________________
> dovecot mailing list -- [email protected]
> To unsubscribe send an email to [email protected]


--

---------------------------------------
e-Mail  : [email protected]
Homepage: https://www.tachtler.net/
DokuWiki: https://dokuwiki.tachtler.net/
---------------------------------------
_______________________________________________
dovecot mailing list -- [email protected]
To unsubscribe send an email to [email protected]
_______________________________________________
dovecot mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to