[Dovecot] Test migration (IMAP copy) and INTERNALDATE?
Apps Lists
appslists at neonova.net
Mon Apr 24 14:47:05 EEST 2006
> On Tue, 2006-04-18 at 10:02 -0400, Apps Lists wrote:
>> We're trying some migration tests ... from CommuniGate to Dovecot.
>> The migration program does an APPEND into the new mailbox:
>>
>> src>: a0 FETCH 2900 (FLAGS INTERNALDATE RFC822.PEEK)
>> src<: * 2900 FETCH (FLAGS (\Seen) INTERNALDATE "29-Aug-2005 18:36:54
>> +0000" RFC822 {1194157}
>> src<: )
>> dst>: bAPP APPEND "INBOX" (\Seen) "29-Aug-2005 18:36:54 +0000"
>> {1194157} dst<: + OK
>>
>> It appears to be trying to set the message date... in this example, to
>> 29 Aug 2005.
>>
>> Dovecot seems to be ignoring it.
>>
>> Am I doing something wrong, or does Dovecot not allow this?
>
> With maildir? Seems to be working with me..:
>
> x append "INBOX" (\Seen) "29-Aug-2005 18:36:54 +0000" {10}
> + OK
> From: foo
>
> * 40 EXISTS
> * 1 RECENT
> x OK Append completed.
> x fetch * internaldate
> * 40 FETCH (INTERNALDATE "29-Aug-2005 21:36:54 +0300")
> x OK Fetch completed.
>
> The date is stored in file's mtime field. What filesystem do you use?
> Maybe it's breaking this somehow.
Hi Timo.
Wow, that's a strange one.
The test system is Centos 4.3 (Final) running kernel 2.6.9-34.ELsmp #1 SMP.
I tested this with NFS and local ext3. The mtime is initially set
properly, but gets changed to current system time sometime later on in the
copy process. I moved the mtime change code around and managed to work
around this, although I'm sure there's a more elegant approach.
The patch is here on the list.
Steve
More information about the dovecot
mailing list