Re: OfflineImap

[prev] [thread] [next] [lurker] [Date index for 2006/11/01]

From: Phil Pennock
Subject: Re: OfflineImap
Date: 02:25 on 01 Nov 2006
On 2006-10-31 at 17:37 +0000, Smylers wrote:
> The errant messages (for there have been more of them during today) have
> a Date: field set to November 31st (Mutt displays it as December 1st).
> What should OfflineImap send to Dovecot in this case?

Nothing to do with the Date: header.  If Dovecot is rejecting the mail
based on the content, it's b0rked.  The relevant time is meta-data about
the mail, the internal date, which should be preserved.  OfflineIMAP
should be preserving this meta-data.

Two blurbs of cut&paste follow; the first is evidence with which to LART
software authors, whilst the second is a simple IMAP transaction showing
a FETCH retrieving the internal date.  (The OpenBSD 4.0 announcement
email).

FETCH can retrieve multiple pieces of data; there are three
macro-equivalent names defined in RFC3501, "ALL", "FAST" & "FULL"; all
three include "INTERNALDATE".  If that's not a big bloody hint that this
is data that clients should care about, well ...  gaah.

RFC 3501 (IMAP) has:
-----------------------------< cut here >-------------------------------
2.3.3.  Internal Date Message Attribute

   The internal date and time of the message on the server.  This
   is not the date and time in the [RFC-2822] 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.  All other cases are
   implementation defined.
-----------------------------< cut here >-------------------------------

-----------------------------< cut here >-------------------------------
% mailcheck-imap -NR
SSL connection [AES256-SHA]
Subject Name: /C=NL/ST=Noord Holland/O=GlobNIX Systems/CN=imap.spodhuis.org/emailAddress=postmaster@xxxxxxxx.xxx
Issuer  Name: /C=NL/ST=Noord Holland/L=Noord-Scharwoude/O=GlobNIX Systems/CN=GlobNIX Certificate Authority/emailAddress=certificates@xxxxxxx.xxx

GSSAPI server ID: imap/imap.spodhuis.org@xxxxxxxx.xxx


a6>> SELECT "Shared Folders/globnix/openbsd-lists"
    PerlIO layers [stdio]:
>>> a6 SELECT "Shared Folders/globnix/openbsd-lists"
<<< * FLAGS (\Answered \Flagged \Draft \Deleted \Seen)
<<< * OK [PERMANENTFLAGS (\Answered \Flagged \Draft \Deleted \Seen \*)]
<<< * 1 EXISTS
<<< * 0 RECENT
<<< * OK [UIDVALIDITY 1162307062]
<<< * OK [UIDNEXT 3]
<<< * OK [NOMODSEQ] Sorry, modsequences have not been enabled on this mailbox
<<< a6 OK [READ-WRITE] Completed

a7>> FETCH 1 INTERNALDATE
    PerlIO layers [stdio]:
>>> a7 FETCH 1 INTERNALDATE
<<< * 1 FETCH (INTERNALDATE " 1-Nov-2006 01:05:09 +0000")
<<< a7 OK Completed (0.000 sec)

a8>> FETCH 1 FULL
    PerlIO layers [stdio]:
>>> a8 FETCH 1 FULL
<<< * 1 FETCH (FLAGS (\Seen) INTERNALDATE " 1-Nov-2006 01:05:09 +0000" RFC822.SIZE 30046 ENVELOPE ("Tue, 31 Oct 2006 17:15:58 -0700" "OpenBSD 4.0 released Nov 1, 2006" (("Theo de Raadt" NIL "deraadt" "cvs.openbsd.org")) ((NIL NIL "owner-announce" "openbsd.org")) (("Theo de Raadt" NIL "deraadt" "cvs.openbsd.org")) ((NIL NIL "announce" "openbsd.org")) NIL NIL NIL "<200611010015.kA10FwQx017003@xxx.xxxxxxx.xxx>") BODY ("TEXT" "PLAIN" ("CHARSET" "us-ascii") NIL NIL "7BIT" 28688 577))
<<< a8 OK Completed (0.000 sec)
-----------------------------< cut here >-------------------------------
There's stuff above here

Generated at 15:01 on 01 Nov 2006 by mariachi 0.52