Sunday, February 6, 2011

Email filtering with Sieve

Sieve is a programming language that can be used to create filters for email.

I use Sieve to manage my emails on the company's IMAP server.

require "fileinto";

if address :is "From" "support@company.jp" {
fileinto "Support";
}

elsif header :contains "Subject" ["Develop", "Codereview"] {
fileinto "Develop"
}

else {
redirect "other.email@company.com";
keep;
}

No comments:

Post a Comment