imaplib AND date format
Tim Roberts
timr at probo.com
Sat Oct 16 17:18:33 EDT 2010
harryos <oswald.harry at gmail.com> wrote:
>In imaplib.IMAP4.search() the search string SENTON can be used
>'(SENTON 22-Jun-2010)' .
>But the RFC 2060 defines search key as
>SENTON <date> Messages whose [RFC-822] Date: header is within the
> specified date.
>and in RFC822 it is given as,
>date = 1*2DIGIT month 2DIGIT ; day month year
> ; e.g.
>20 Jun 82
RFC 822 has long been obsolete, replaced by RFC 2822, and now by RFC 5322.
That two-digit format was abandoned quite a long time ago.
A compliant date header looks like this:
Date: 20 June 2010 12:34:56 -0700
--
Tim Roberts, timr at probo.com
Providenza & Boekelheide, Inc.
More information about the Python-list
mailing list