[imapfilter-devel] 2.0.2 search syntax not working?

Ryan Nielsen ryan.nielsen at colorado.edu
Sun Jul 1 22:49:59 EEST 2007


Hello,

I'm just now giving imapfilter a try for the first time and am trying  
to use the new 2.0 config file format. Unfortunately, on two different  
IMAP servers, I am unable to get searching to work properly. Simple  
example, here's a basic config script:

messages = foo['Inbox']:contain_from("bankofamerica")
print(#messages)
messages = match(legacy_foo, 'Inbox', {'from "bankofamerica"'})
print(#messages)

When run with imapfilter -v:

> [flashbang:~] ryan% imapfilter -v
> S (3): * OK [CAPABILITY IMAP4REV1 LITERAL+ SASL-IR LOGIN-REFERRALS  
> AUTH=PLAIN AUTH=LOGIN] foo.bar.edu IMAP4rev1 2004.357 at Sun, 1 Jul  
> 2007 01:29:45 -0600 (MDT)
> C (3): 1000 CAPABILITY
> S (3): 1000 OK CAPABILITY completed
> C (3): 1001 LOGIN "foo" *
> S (3): 1001 OK [CAPABILITY IMAP4REV1 LITERAL+ IDLE NAMESPACE MAILBOX- 
> REFERRALS BINARY UNSELECT SCAN SORT THREAD=REFERENCES  
> THREAD=ORDEREDSUBJECT MULTIAPPEND] User foo authenticated
> C (3): 1002 NAMESPACE
> S (3): 1002 OK NAMESPACE completed
> C (3): 1003 SELECT "Inbox"
> S (3): 1003 OK [READ-WRITE] SELECT completed
> C (3): 1004 UID SEARCH FROM "bankofamerica"
> S (3): 1004 OK UID SEARCH completed
> 0
> C (3): 1005 SELECT "Inbox"
> S (3): 1005 OK [READ-WRITE] SELECT completed
> C (3): 1006 UID SEARCH ALL (from "bankofamerica")
> S (3): 1006 OK UID SEARCH completed
> 115

I can reproduce this behavior on a sun server as well:

> S (3): * OK [CAPABILITY IMAP4 IMAP4rev1 ACL QUOTA LITERAL+ NAMESPACE  
> UIDPLUS CHILDREN LANGUAGE XSENDER X-NETSCAPE XSERVERINFO AUTH=PLAIN]  
> Messaging Multiplexor (Sun Java(tm) System Messaging Server 6.2-7.02  
> (built Jun 13 2006))

 From what I can tell, searching with the new 2.0 syntax is busted. Am  
I missing something blatantly obvious? Should I simply revert to the  
deprecated syntax? (I'd prefer not to, since I'm just now adopting  
imapfilter.)

--
Ryan




More information about the Imapfilter-devel mailing list