summaryrefslogtreecommitdiffstats
path: root/pigeonhole/examples/vivil.sieve
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-28 09:51:24 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-28 09:51:24 +0000
commitf7548d6d28c313cf80e6f3ef89aed16a19815df1 (patch)
treea3f6f2a3f247293bee59ecd28e8cd8ceb6ca064a /pigeonhole/examples/vivil.sieve
parentInitial commit. (diff)
downloaddovecot-f7548d6d28c313cf80e6f3ef89aed16a19815df1.tar.xz
dovecot-f7548d6d28c313cf80e6f3ef89aed16a19815df1.zip
Adding upstream version 1:2.3.19.1+dfsg1.upstream/1%2.3.19.1+dfsg1upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'pigeonhole/examples/vivil.sieve')
-rw-r--r--pigeonhole/examples/vivil.sieve94
1 files changed, 94 insertions, 0 deletions
diff --git a/pigeonhole/examples/vivil.sieve b/pigeonhole/examples/vivil.sieve
new file mode 100644
index 0000000..bce7507
--- /dev/null
+++ b/pigeonhole/examples/vivil.sieve
@@ -0,0 +1,94 @@
+# Example Sieve Script
+# Author: Vivil
+# URL: http://wiki.fastmail.fm/index.php?title=Vivil
+# Removed unused notify require
+
+# *************************************************************************
+require ["envelope", "fileinto", "reject", "vacation", "regex", "relational",
+"comparator-i;ascii-numeric"];
+
+
+if size :over 2048K {
+ reject "Message not delivered; size over limit accepted by recipient";
+ stop;
+}
+
+#because of the use of elsif below, none of the "stop;"'s below are needed, but they're good 'defensive programming'. Only the one above is actually needed.
+
+redirect "login@gmail.dom";
+
+if header :contains ["from","cc"]
+[
+ "from-begin@beginbeginbeginbeginbeginbeginbeginbeginbegin.fr",
+ "sex.com newsletter",
+ "ad@gator.com",
+ "newsletter@takecareof.com",
+ "from-end@endendendendendendendendendendendendendendendend.fr"
+]
+{
+ discard;
+ stop;
+}
+
+elsif header :contains ["from"]
+[
+ "mygirlfriend-who-use-incredimail@foo.dom"
+]
+{
+ fileinto "INBOX.PRIORITY";
+ stop;
+}
+
+#use of "to" field detection next lines is ONLY USEFUL FOR DOMAIN NAME OWNERS if you forward your mail to your fastmail account, some virus/spam send mail to well known addresses as info@willemijns.dom i never use...
+
+elsif header :contains ["to","cc"]
+[
+ "to-begin@beginbeginbeginbeginbeginbeginbeginbeginbegin.fr",
+ "FTPsebastien@willemijns.dom",
+ "info@willemijns.dom",
+ "webmaster@willemijns.dom",
+ "to-end@endendendendendendendendendendendendendendendend.fr"
+]
+{
+ discard;
+ stop;
+}
+
+elsif header :contains ["subject"]
+[
+ "subject-begin@beginbeginbeginbeginbeginbeginbeginbeginbegin.fr",
+ "Undeliverable mail: Registration is accepted",
+ "subject-end@endendendendendendendendendendendendendendendend.fr"
+]
+{
+ discard;
+ stop;
+}
+elsif header :value "ge" :comparator "i;ascii-numeric" ["X-Spam-score"] ["6"] {
+ fileinto "INBOX.Junk Mail";
+ stop;
+}
+elsif header :contains "from" "reflector@launay.dom" {
+ fileinto "INBOX.TEST";
+ stop;
+}
+elsif header :contains "from" "do-not-reply@franconews.dom" {
+ fileinto "INBOX.TEST";
+ stop;
+}
+elsif header :contains "from" "devnull@news.telefonica.dom" {
+ fileinto "INBOX.TEST";
+ stop;
+}
+elsif header :contains ["to"] ["sebastien@willemijns.dom"] {
+ fileinto "INBOX.PRIORITY";
+ stop;
+}
+elsif header :contains ["to"] ["seb@willemijns.dom"] {
+ fileinto "INBOX.PRIORITY";
+ stop;
+}
+else {
+ fileinto "INBOX";
+}
+# ********************************************************************