If the message contains both recipients, then it enters the mail
system twice, so you'll get two copies of the message. Your script
acts to further duplicate the message by saving one copy per person.
Why are you manually duplicating the message when the "to" "cc" and
"bcc" fields already tell you that the message has both people?
Aaron
On Sep 28, 2008, at 4:56 PM, DLX wrote:
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
_______________________________________________
DBmail mailing list
[email protected]
https://mailman.fastxs.nl/mailman/listinfo/dbmail