On Mon, 2006-02-27 at 22:50 +0100, Václav Haisman wrote:
Hi, when I move some recent mail from some mbox folder into Maildir folder the moved email sorts as the first (on top) in the folder while it should be on the bottom with the rest of the recent emails in the folder. This happens only when moving from mbox folder to Maildir folder. I am not sure if it is really Dovecot bug or not but I suspect it could be so because it only happens in this one specific scenario.
Usually clients sort either by message UID (practically non-sorted), received date or message's Date-header. Dovecot can't help with the UID sorting because UIDs must always grow. I couldn't cause received date to break either. You're using namespaces I suppose? You could try this also:
x select mbox x fetch 1 internaldate x copy 1 maildirbox x select maildirbox x fetch * internaldate
If the internaldates match, then copying worked correctly.