Thank you for your reply, but the problem is that a mail to both recipients
contains both [EMAIL PROTECTED] and [EMAIL PROTECTED] in its header. In other
words, the first "if" will always evaluate to true and the mail will be
filed twice in Johns directory. Your solution is equivalent to an "elseif"
for the second "if" and won't file any mail for Peter at all.
Michael Monnerie-5 wrote:
>
> On Mittwoch, 24. September 2008 DLX wrote:
>> require "fileinto";
>> if address :contains :all ["to", "cc", "bcc"] "[EMAIL PROTECTED]" {
>> fileinto "John"; stop; }
>> if address :contains :all ["to", "cc", "bcc"] "[EMAIL PROTECTED]" {
>> fileinto "Peter"; }
>
> Put a "stop;" where I put it, and sieve will stop there after filing the
> first mail.
>
> mfg zmi
>
--
View this message in context:
http://www.nabble.com/Filtering-mail-with-multiple-recipients-tp19630701p19716793.html
Sent from the dbmail users mailing list archive at Nabble.com.
_______________________________________________
DBmail mailing list
[email protected]
https://mailman.fastxs.nl/mailman/listinfo/dbmail