[imapfilter-devel] Matching problem with imapfilter and Exchange IMAP

Bernd Kuemmerlen bkuemmer at gmx.net
Mon Mar 31 17:45:52 EEST 2008


Hello,

even though I have thought I had tackled all the problems using 
imapfilter with Exchange IMAP, I have found a new problem.

My initial problem was (is) that matching e-mail on the server with
   results = account.INBOX:contain_subject('***SPAM***')
does not work (reliably) with our Exchange IMAP server.

Fiddling around with different options I found out that the following 
query *seemed* to work:

   results = account.INBOX:contain_field('X-Spam-Status','Yes')

but, unfortunately, this does seem to match all mails that contain a 
'X-Spam-Status' header field, even though the field is
X-Spam-Status: No

   results = account.INBOX:contain_header('X-Spam-Status: Yes')

works correctly, but is quite slow on larger mailboxes.

Any idea why
   results = account.INBOX:contain_field('X-Spam-Status','Yes')
does not work? As I said, it looks as if this just checks for the 
existance of the X-Spam-Status field, but does not (reliably?) check the 
content.

Cheers
Bernd




More information about the Imapfilter-devel mailing list