[Dovecot] sieve rules quiestion (deduplicate e-mails)
Hello. I'm successful use sieve for filtering e-mail from various subscriptions.
But if i have subscription for 2 or more mailing lists and user write email to list1@xxx.org and list2@yyy.org by REPLY TO ALL or make a CC header, i'm recieve email twice, if i reply in some list to user and user REPLY TO ALL - i'm recieve email 3 times :)
How can i'm eliminate this duplications? For example i want to recive all emails, but put only one in subscription folder. And other silently discard....
And second question is - i have many subsections to mailing lists, sieve rules looks like this:
elsif header :contains "List-Id" ["cfe-dev.cs.uiuc.edu"] { fileinto "Subscriptions/Clang"; } elsif header :contains "List-Id" ["jabberd2-lists.xiaoka.com"] { fileinto "Subscriptions/Jabberd2"; } elsif header :contains "List-Id" ["chef.lists.opscode.com"] { fileinto "Subscriptions/Chef"; } elsif header :contains "List-Id" ["help-cfengine.cfengine.org"] { fileinto "Subscriptions/Cfengine"; } # rule:[Exherbo] elsif header :contains "List-Id" ["exherbo-dev.lists.exherbo.org","exherbo-commits.lists.exherbo.org"] { fileinto "Subscriptions/Exherbo"; } # rule:[Php] elsif header :contains "List-Id" ["highload-php-ru.googlegroups.com","highload-php-en.googlegroups.com"] { fileinto "Subscriptions/Php"; } # rule:[Btrfs] elsif header :contains ["List-Id"] ["linux-btrfs.vger.kernel.org"] { fileinto "Subscriptions/Btrfs";
How can i minimize this rules and save desired functionality?
-- Vasiliy G Tolstov v.tolstov@selfip.ru Selfip.Ru
participants (1)
-
Vasiliy G Tolstov