[Dovecot] preserving \Recent when moving messages

Timo Sirainen tss at iki.fi
Sat Feb 12 04:39:19 EET 2011


On Fri, 2011-02-11 at 18:27 -0800, Mark Hedges wrote:

> With Mail::IMAPClient I tried using move(), copy(), and
> migrate() but the result is the same-- once it looks at the
> source message, \Recent is gone.

It's not about looking or touching the message. \Recent flags are gone
when mailbox is SELECTed. If you want to preserve \Recent flag, you need
to EXAMINE a mailbox instead.

> RFC5301 says \Recent can never be set... but does its
> prohibition include the case of migrating mail, where the
> intent is to retain them intact?  It would be nice if
> Dovecot offered a migration feature which would move a
> message from folder to folder without unsetting \Recent.

Copying a message always sets the destination mail as \Recent,
regardless of whether the original one was.




More information about the dovecot mailing list