[imapfilter-devel] i18n and difference bitween match_subject() and contain_subject()

Lefteris Chatzimparmpas lefcha at hellug.gr
Thu Nov 12 21:44:44 EET 2009


On Thu, Nov 12, 2009 at 06:15:48PM +0300, Alexander Polyakhov wrote:
> Hi.
> I decide to manipulate with message which subject is exactly "Ответ на  
> ваш комментарий на example.com"
> My rule is invalid in imapfilter decision. It`s here:
> result = server.username.INBOX:contain_subject('Ответ на ваш комментарий  
> на example.com')

Hello,

Can you run imapfilter with the -v option so we can see what was the
error message when the search query was sent to the mail server?

I suspect that it might be a character set issue with the search
queries...

>
> I`ve modified it. Now it works:
> result = server.username.INBOX:match_subject('Ответ на ваш комментарий  
> на example.com')
>
> Why does the "contain" method fails?

Also, by "fails" you mean that it doesn't match any messages, right?

The match command downloads the Subject header of all messages and
matches locally using regular expressions.  You shouldn't need this, if
you are just searching for a simple string.

> _______________________________________________
> Imapfilter-devel mailing list
> Imapfilter-devel at lists.hellug.gr
> http://lists.hellug.gr/mailman/listinfo/imapfilter-devel


More information about the Imapfilter-devel mailing list