Hey, Charlie.

On Mon, 31 Mar 2003, Charlie Brady wrote:
>On Tue, 25 Mar 2003, Andreas Aardal Hanssen wrote:
>> On Tue, 25 Mar 2003, Tibor Dekany wrote:
>> This makes sense to me. Moving/copying mails to a Maildir folder delegates
>> a new internaldate to all messages. The Date header remains intact.
>> Squirrelmail most likely uses internaldate, and those are reset on a COPY
>> or APPEND. It's not Binc's fault, it's a thing with Maildir. :/ You will
>> see the same thing with Courier-IMAP and Dovecot and any other Maildir
>> client.
>each message already has a good value for "internal date" - it's the first
>component of the maildir message file name. All you need to do is to
>preserve that number when copying messages to a different maildir.
>This is something that I fixed in the maildir patches for UW-IMAP (by 
>re-enabling code which had been commented out), and my Outlook users were 
>much happier.

I think your patch may be seriously broken, and there was a good reason 
why the code was commented out.

>Just because Courier and dovecot are wrong doesn't mean that Binc should 
>be.

They all do it the same way, because there is (I should post this on the
FAQ) _no way_ to deliver a message to a Maildir without using time(NULL)
as the base (first part) of the message. If you set this portion of the
message, as you say, to a predefined value that is typically << time(NULL)
then messages will disappear because you are not guaranteed that all
messages in cur/ will have different bases.

Dovecot started doing this after I posted the exact recipe for Dovecot to
lose a bunch of messages. You can look that up in the archives. Timo said
something about "come on, what's the chance of that happening" and refused
to fix his Maildir code, but he eventually caved in when I showed him how
easily this race can be reproduced in real time.

Saving to tmp, then linking to new/ with time(NULL) is a Maildir
requirement, not an option, and Dovecot and Courier-IMAP and Binc IMAP are
not doing it wrong.

Andy

-- 
Andreas Aardal Hanssen | http://www.andreas.hanssen.name/gpg
Author of Binc IMAP    | Nil desperandum

Reply via email to