imaplib AND date format

H

harryos

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

The format 22 Jun 10 will cause aSEARCH command error:
BAD ['Could not parse command']

Is this deliberate or is it an anomaly ?
regards,
harry
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,582
Members
45,066
Latest member
VytoKetoReviews

Latest Threads

Top