[imapfilter-devel] subsearch of results

Lefteris Chatzimparmpas lefcha at hellug.gr
Fri Aug 6 22:50:50 EEST 2010


Hello!

Which version of imapfilter are you using? You can see that with:

	imapfilter -V


On 08/05/2010 02:18 AM, Josef wrote:
> Hello there,
> I'm a bit lost with LUA. I'm trying to do this:
> results = ( account1.INBOX:is_unseen() *
> account1.INBOX:match_header('X-Spam-Flag: YES') )
>
> But as the inbox contains >10000 messages, this would be too slow. So I
> would like to search for spam flag only those messages, that are new,
> not doing the search again. I tought of this:
> results = account1.INBOX:is_unseen()
> newresults = results:match_header('X-Spam-Flag: YES')
>
> But the imapfilter keeps on returning this error:
> imapfilter: pepus at p-h-a.cz:9: attempt to call method 'match_header' (a
> nil value)
>
> Am I doing anyting wrong? Or is there a way to achieve this?
>
> Thank you a lot,
> Josef
> _______________________________________________
> 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