[imapfilter-devel] List in field def

Philippe LeCavalier support at plecavalier.com
Tue Jan 18 21:15:18 EET 2011


Thanks Lefteris.

On Tue, 2011-01-18 at 20:03 +0100, Lefteris Chatzimparmpas wrote:
> Hello,
> 
> This isn't possible with imapfilter's current simplified configuration
> format.
By 'current' are you implying it will eventually ;)
> 
> You have to combine 3 contain_field() calls with the '+' operator as
> stated in the manual page. You could use a Lua for loop to avoid
> repetition, but just for 3 calls it's probably not worth it.
Actually I didn't elude to this in my example but it's 6 since it's 2
accounts three times. But I can live with that.

So if I continue down this path I should prob. learn at least some basic
lua ?

Thanks,
Phil
> > How can I list multiple fields in the same argument?
> > 
> > results = acc2['Sent']:contain_field('to,from,cc', 'email_address') 
> > results:copy_messages(acc1['Customers/acc2/help/Sent'])
> > 
> > The 'to,from,cc' doesn't work for grabbing the relevant mail. If I state
> > a rule for each field it works fine. I take it my angle for shortening
> > this rule isn't appropriate but there must be a way.
> > 
> > Thanks,
> > Phil
> > 
> > _______________________________________________
> > 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