Charlie Brady <[EMAIL PROTECTED]> schrieb:
> I don't understand how the mail client is getting the "internal date" > (which is no longer "internal" once it is exported from the IMAP daemon > environment). There's obviously something that I don't understand. Is > there part of the IMAP protocol which sends this "internal" concept of > date to the client? Yes. The client can use the FETCH command, which can deliver almost everything :-) See RFC2060, Page 41 Example: The FETCH COMMAND send from client to the IMAP server: aw5 FETCH 81,80 (FLAGS RFC822.SIZE INTERNALDATE BODY.PEEK[HEADER.FIELDS (SUBJECT FROM TO MESSAGE-ID REFERENCES IN-REPLY-TO DELIVERY-DATE DATE)]) Response the IMAP server send to the client: note the INTERNALDATE! * 81 FETCH (FLAGS (\Seen) RFC822.SIZE 81155 INTERNALDATE "21-Feb-2002 21:59:10 +0100" BODY[HEADER.FIELDS ("SUBJECT" "FROM" "TO" "MESSAGE-ID" "REFERENCES" "IN-REPLY-TO" "DELIVERY-DATE" "DATE")] {412} Delivery-date: Thu, 21 Feb 2002 21:58:28 +0100 Date: Thu, 21 Feb 2002 15:58:08 -0500 (EST) From: Charlie Brady <[EMAIL PROTECTED]> To: Michael Weinberger <[EMAIL PROTECTED]> Subject: Re: [e-smith-devinfo] Courier IMAP Howto available In-Reply-To: <[EMAIL PROTECTED]> Message-ID: <[EMAIL PROTECTED]> ) * 80 FETCH (FLAGS (\Seen) RFC822.SIZE 4185 INTERNALDATE "21-Feb-2002 21:41:04 +0100" BODY[HEADER.FIELDS ("SUBJECT" "FROM" "TO" "MESSAGE-ID" "REFERENCES" "IN-REPLY-TO" "DELIVERY-DATE" "DATE")] {379} Delivery-date: Thu, 21 Feb 2002 21:40:40 +0100 Date: Thu, 21 Feb 2002 15:40:17 -0500 (EST) From: Charlie Brady <[EMAIL PROTECTED]> To: Michael Weinberger <[EMAIL PROTECTED]> Subject: Re: [e-smith-devinfo] Courier IMAP Howto available In-Reply-To: <[EMAIL PROTECTED]> Message-ID: <[EMAIL PROTECTED]> ) > If messages are stored in mbx or mbox format, there is no file time stamp > per message, so wu-imapd must be using something else. If it's something > as sane as "time of last Received header", then I don't see why the > maildir patched wu-imapd couldn't do the same thing. Except perhaps that > it would be an efficiency thing, in that each message would need to be > opened to extract the headers. That's not such an issue with a "one big > file containing all messages" format, as that needs to be scanned in any > case. Mails in plain mbox format are delimited by a blank line followed by a "From " line. This line contains the internal date. e.g. >From [EMAIL PROTECTED] Sun Apr 1 20:35:12 2001 Mails stored in as individual files in a maildir directory dont have this first line. Michael -- Please report bugs to [EMAIL PROTECTED] Please mail [EMAIL PROTECTED] (only) to discuss security issues Support for registered customers and partners to [EMAIL PROTECTED] To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Archives by mail and http://www.mail-archive.com/devinfo%40lists.e-smith.org