ietf-mta-filters
[Top] [All Lists]

RE: List of expected changes for sieve 05 draft - Forward

1998-11-11 14:44:49
Tim...
(BTW, I find it *much* more useful to use "envelopesender" than to use
the document header fields.  Suppose I'm subscribed to the IMAP, ACAP,
IMAPEXT, and MTA-FILTERS mailing lists, and someone posts something to
all of them.  With "envelopesender" I can sort the four copies into their
respective folders.  Without it, there's no way to do that.)

Not true.

if header ["to", "cc"] :contains ["ietf-mta-filters(_at_)imc(_dot_)org"] {
      fileinto "INBOX.mta-filters";
}
if header ["to", "cc"] :contains ["imap(_at_)cac(_dot_)washington(_dot_)edu"] 
{
      fileinto "INBOX.imap-list"; 
}
[etc.]

Or am I just completely missing something?

Trouble with that is that all four copies of the message match all four
tests.  So I wind up with each folder getting four copies of the message.
And that's assuming my implementation supports multiple fileinto.

But if I use 'envelope ["from"]', then each of the four copies of the
message only matches one, and I get exactly what I want.

Barry