[Dovecot] Sorting order after mail move
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.
Vaclav Haisman
On 2006-02-27 22:50:05 +0100, Václav Haisman wrote:
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.
you are sure it is not a client issue? can you retest that with another imap server?
darix
-- openSUSE - SUSE Linux is my linux openSUSE is good for you www.opensuse.org
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.
Timo Sirainen wrote:
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.
The date after copying matches. Sorry for the noise, I think I found the culprit on my side. I thought I had Thunderbird set to sort by date but I had set up to use sorting of receive order instead.
Vaclav Haisman
participants (4)
-
Marcus Rueckert
-
Timo Sirainen
-
Václav Haisman
-
Václav Haisman