[imapfilter-devel] No match with contain_subject on Exchange server
Lefteris Chatzimparmpas
lefcha at hellug.gr
Wed Feb 13 22:40:04 EET 2008
On Wed, Feb 13, 2008 at 08:17:57PM +0100, Bernd Kuemmerlen wrote:
> Yes, I have experimented with different queries. The strange thing is
> that when I started experimenting with the server, I think the filters
> worked more or less (I had an OR match for several Spam-Markers in the
> subject, and some of those messages were moved). But now, no matter what
> I try, nothing is matched (I also tried very easy queries like
> results = account.INBOX:contain_subject('Re:'), or just single letters).
This is strange... IIRC, some years ago someone else had a problem with
Exchange, and the problem seemed to be that the IMAP SEARCH
functionality was disabled by some option in the server. But in your
case only the SEARCH SUBJECT seems to fail...
> Also, a match on
> results = account2.INBOX:contain_header('X-SpamTest-Status: SPAM')
> *does* work (but the match is quite a bit slower).
If you do contain_header('Subject: ***SPAM***') does it work? It looks
like it would work in your case...
Also, you could do match_subject(), but have in mind (you probably know
it already) that while this would lighten the burden of searching from
the server, you would have to waste some bandwidth in order to fetch the
Subject header from all messages (of course this way you can also do
regular expression matching)...
> This seems very mysterious to me.
Yes...
More information about the Imapfilter-devel
mailing list