11 May
2007
11 May
'07
5:48 p.m.
On Fri, 2007-05-11 at 06:22 -0600, Trever L. Adams wrote:
ok, uids = conn.search(None, 'BEFORE', unreadsentbefore, 'SEEN')
"11-May-2007 06:18:29 -0600" is the value of unreadsentbefore.
From IMAP RFC:
search-key = "ALL" / "ANSWERED" / "BCC" SP astring / "BEFORE" SP date / "BODY" SP astring / .. date = date-text / DQUOTE date-text DQUOTE date-text = date-day "-" date-month "-" date-year
So you'll need to use "11-May-2007". It doesn't support time.