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

Re: A little sieve help

2008-12-10 21:05:56

This mailing list mostly works on Sieve as a standard, but a few user
questions now and then is good -- someone is using this stuff! ;-)

On Wed, 2008-12-10 at 17:31 -0500, Patrick Baldwin wrote:

[snip procmail script]

In sieve, I was thinking something like:

require ["fileinto","regex","envelope"];

if address :is "To" "online" {
  fileinto "online";
} elsif address :is "To" "Support" { 
  fileinto "Support";
}
if address :is "From" "<ship address>" {
  fileinto "SHIPMENTS";
}

:matches might be what you want, rather than :is.

redirect "<user name>@gmail.com";
keep;

stop;

Stop is not needed at the end of the script, but doesn't hurt.


...but I'm really not sure.  I also haven't figured out how to have sieve
insert a header to avoid mail loops like I did with procmail.

libsieve doesn't support the editheader extension yet, RFC 5293. It's on
my todo list...

Aaron

<Prev in Thread] Current Thread [Next in Thread>