Sieve Script, anyone?
Matthew Carpenter
matt
Mon May 17 12:00:38 PDT 2004
Does anyone know what this script does not get executed? According to
the RFC, Sieve should not execute the script if:
a) The script Requires something the server doesn't implement... This
is not the problem.
b) The script has an error of some sort in it. I hope this isn't the
case, but would like to know.
The script is being run on Cyrus's own implementation of Sieve. The bad
part is that there are no logs whatsoever about anything having to do
with the script and I don't know how to change that.
The script is intended to be used to sort mail from a joint-email
account. Several aliases exist which are directed to one POP3 account,
the account is then fetchmailed and dropped into the "postmaster"
account, which then sorts according to the "TO" and "CC" fields. The
first rule is used to test that the script is executing at all...
Any help appreciated.
Thanks,
Matt
# Mail rules for user postmaster
# Created by Websieve version 0.61h
require ["fileinto","reject"];
if allof (header :contains "subject" "TEST MAIL REDIRECT") {
redirect "matt at eisgr.com";
}
if anyof (address :contains ["Cc","CC","To","TO"] "engineering") {
redirect "matth at mydomain.com";
}
if anyof (address :contains ["Cc","CC","To","TO"] "design") {
redirect "bruces at mydomain.com";
}
if anyof (address :contains ["Cc","CC","To","TO"] "bruce", header
:contains "subject" "bruce ") {
redirect "bruces at mydomain.com";
}
if allof (address :contains ["Cc","CC","To","TO"] "matt, rick, nick",
header :contains "subject" "matt, rick, nick") {
redirect "matth at mydomain.com";
}
if allof (address :contains ["Cc","CC","To","TO"] "postmaster") {
redirect "matth at mydomain.com";
}
if allof (address :matches ["Cc","CC","To","TO"] "***") {
reject text:^M
Mailbox does not exist.^M
.^M
;
}
else {
keep;
}
--
Matthew Carpenter
matt at eisgr.com http://www.eisgr.com/
Enterprise Information Systems
* Network Server Appliances
* Network Consulting, Integration & Support
* Web Integration and E-Business
More information about the Linux-users
mailing list