[imapfilter-devel] List in field def
Lefteris Chatzimparmpas
lefcha at hellug.gr
Tue Jan 18 21:03:48 EET 2011
Hello,
This isn't possible with imapfilter's current simplified configuration
format.
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.
On 01/17/2011 04:00 PM, Philippe LeCavalier wrote:
> Hi.
>
> 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