[imapfilter-devel] match_* does not filter work

Cronfy cronfy at peterhost.ru
Tue Dec 25 20:10:26 EET 2007


Hello,

I have just installed imapfilter-2.0.8. Previously I was using version 1.3
(thanks for the nice tool!), but after meeting search problem I decided
to upgrade.

The problem was that I could not make a search on Subject header if it was
bsae64- or quoted-printable-encoded (all searches did not match).

I decided to use PCRE capabilities of new imapfilter. Unfortunately I see
that match_* functions do not work for me at all. In example, I am running
this code:

messages = aCronfy['INBOX.Testimapfilter']:match_subject('O')
aCronfy['INBOX.Testimapfilter']:move_messages(aCronfy['INBOX.test'],messages)

debug says:


1006 UID SEARCH ALL
* SEARCH 4 6
1009 UID FETCH 4 BODY.PEEK[HEADER.FIELDS (Subject)]
* 1 FETCH (UID 4 BODY[HEADER.FIELDS (Subject)] {112}
Subject: =?Windows-1251?B?UmU6IFtUaWNrZXQjOiA3NzEyMjAwODRdIM3lIPDg4e7y4PLl8iDx5f
Di?= =?Windows-1251?B?5fA=?=

)

100A UID FETCH 6 BODY.PEEK[HEADER.FIELDS (Subject)]
* 2 FETCH (UID 6 BODY[HEADER.FIELDS (Subject)] {22}
Subject: OTRS2 (2)

)

And messages stay where they were. Looks like match_subject('O') does match
neither "OTRS2 (2)", 
nor "=?Windows-1251?B?UmU6IFtUaWNrZXQjOiA3NzEyMjAwODRdIM3lIPDg4e7y4PLl8iDx5f"

I am using FreeBSD 6.2 with pcre-6.4.

Am I doing something wrong? Thanks in advance.


-- 
Cronfy.




More information about the Imapfilter-devel mailing list