[Dovecot] Problems with BEFORE searches.
    Timo Sirainen 
    tss at iki.fi
       
    Fri May 11 17:48:08 EEST 2007
    
    
  
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.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://dovecot.org/pipermail/dovecot/attachments/20070511/0d2f8f35/attachment.pgp 
    
    
More information about the dovecot
mailing list