On Tue, 25 Mar 2003, Andreas Aardal Hanssen wrote: > On Tue, 25 Mar 2003, Tibor Dekany wrote: > > >Since I have a "fax archive" folder with lot's of faxes sent to me by > >email converted to pdf files, this was a major problem for me. > >> . Undeletable messages can appear. (never seen them with courier) > >> . Timestamps can go mad. (also not seen in courier) > >Strange: in Mozilla, the dates of the mails are correct, but with > >Squirrelwebmail, I have for all mails the same date (this is the date > >when I moved all mails from my old IMAP server to the bincimap server). > > 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.
There's nothing which says that the internaldate need change if you copy or append a message, and there's something (RFC2060) which says that the internaldate shouldn't change: The internal date and time of the message on the server. This is not the date and time in the [RFC-822] header, but rather a date and time which reflects when the message was received. In the case of messages delivered via [SMTP], this SHOULD be the date and time of final delivery of the message as defined by [SMTP]. In the case of messages delivered by the IMAP4rev1 COPY command, this SHOULD be the internal date and time of the source message. In the case of messages delivered by the IMAP4rev1 APPEND command, this SHOULD be the date and time as specified in the APPEND command description. I haven't looked to see where you are deriving the internaldate from, but 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. Just because Courier and dovecot are wrong doesn't mean that Binc should be. -- Charlie

