Filtering for similar mails
From time to time you need to filter a number of mails that are differing but got some similar characteristics into one folder. For example I'm reading a lot of mailing lists. At least about 10 of the Debian project. Since I prefer to don't sort each mailing list into a seperate folder, there needs to be a rule that is saving all of the Debian list into one folder. The solution for Sieve on Dovecot is very simple:
require [ "regex", "fileinto" ];
# Filterting out spam
if exists "X-Spam-Flag"
{
fileinto "Spam";
}
elsif header :regex "List-Id" "debian-*"
{
fileinto "Lists.Debian";
}




