Commit 6a816dc0 authored by maride's avatar maride
Browse files

Init

parents
Loading
Loading
Loading
Loading

README.md

0 → 100644
+21 −0
Original line number Diff line number Diff line
![Logo](logo.svg)

# spamfrei

[Sieve](https://doc.dovecot.org/2.3/configuration_manual/sieve/pigeonhole_sieve_interpreter/) script against Spamalot.

## Usage

Review the contents of `sieve`, which contains the sieve commands executed on your mail *before uploading*.

Follow the [Chaosdorf Wiki article](https://wiki.chaosdorf.de/Mail#Details_zum_Mail-Versand), basically you need to install `sieve-connect` and use it to upload the script. Example:

```
$ sieve-connect --server intern.chaosdorf.de --user youruser
Sieve/IMAP Password: <your password>
ReadLine support enabled.
> upload sieve
> checkscript sieve
> activate sieve
```

logo.svg

0 → 100644
+105 −0
Original line number Diff line number Diff line
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Created with Inkscape (http://www.inkscape.org/) -->

<svg
   version="1.1"
   id="svg1"
   width="528.42505"
   height="182.99632"
   viewBox="0 0 528.42505 182.99632"
   sodipodi:docname="logo.svg"
   inkscape:version="1.3.2 (091e20ef0f, 2023-11-25)"
   inkscape:export-filename="logo.png"
   inkscape:export-xdpi="96"
   inkscape:export-ydpi="96"
   xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
   xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
   xmlns="http://www.w3.org/2000/svg"
   xmlns:svg="http://www.w3.org/2000/svg">
  <defs
     id="defs1" />
  <sodipodi:namedview
     id="namedview1"
     pagecolor="#505050"
     bordercolor="#ffffff"
     borderopacity="1"
     inkscape:showpageshadow="0"
     inkscape:pageopacity="0"
     inkscape:pagecheckerboard="1"
     inkscape:deskcolor="#505050"
     inkscape:zoom="1.1864429"
     inkscape:cx="215.3496"
     inkscape:cy="26.549951"
     inkscape:window-width="1920"
     inkscape:window-height="1043"
     inkscape:window-x="0"
     inkscape:window-y="0"
     inkscape:window-maximized="1"
     inkscape:current-layer="g16" />
  <g
     inkscape:groupmode="layer"
     inkscape:label="Image"
     id="g1"
     transform="translate(-88.199437,-100.44651)">
    <g
       id="g16"
       transform="translate(-0.25468598,-58.797084)">
      <path
         style="fill:#ee7d01"
         d="m 530.49724,286.30565 c -9.20295,-4.09028 -12.77961,-11.37883 -12.87708,-26.24106 -0.15904,-24.25 11.82182,-43.62533 29.61557,-47.89398 18.24815,-4.37767 31.41988,5.9621 27.53141,21.61208 -2.63759,10.61555 -15.27377,20.22166 -31.53892,23.97611 -6.34524,1.46466 -6.73098,1.79617 -6.73098,5.78472 0,9.54604 9.77282,11.4851 20.01008,3.97025 l 6.36735,-4.67406 4.10311,4.67318 c 4.70521,5.35896 4.41585,7.16625 -1.92124,11.99978 -10.74436,8.19513 -25.06932,11.01084 -34.5593,6.79298 z m 17.77516,-42.92216 c 8.2365,-4.10442 11.97914,-9.748 9.73333,-14.67702 -4.44287,-9.75103 -17.67327,-0.965 -20.80281,13.8147 -0.77914,3.67963 -0.53879,4.33333 1.59325,4.33333 1.38095,0 5.64525,-1.56195 9.47623,-3.47101 z m -134.41779,42.47102 c 0.0132,-0.55 1.80981,-13 3.99241,-27.66667 2.1826,-14.66667 3.97179,-27.41667 3.97596,-28.33334 0.005,-1.11411 -2.22267,-1.66666 -6.71949,-1.66666 h -6.72709 l 0.90397,-5 c 0.49718,-2.75 1.14958,-5.27522 1.44979,-5.6116 0.3002,-0.33637 3.34667,-0.93637 6.76993,-1.33333 l 6.22411,-0.72174 1.57891,-10.23436 c 1.94771,-12.62487 5.8434,-19.84878 12.8179,-23.76866 4.64034,-2.60802 6.72447,-2.90979 16.53866,-2.39467 6.17609,0.32416 11.79251,1.15264 12.48094,1.84107 0.78003,0.78003 0.46969,3.91935 -0.82358,8.33112 -1.66507,5.6801 -2.51124,6.90004 -4.28087,6.17183 -1.21307,-0.49918 -4.60712,-1.20261 -7.54233,-1.56318 -4.12787,-0.50708 -5.86114,-0.0761 -7.65178,1.9025 -2.19152,2.42161 -5.33105,18.28367 -3.90173,19.71299 0.36742,0.36742 3.94303,0.66803 7.94581,0.66803 h 7.27777 l -0.83333,4.16666 c -0.45833,2.29167 -0.83333,4.99167 -0.83333,6 0,1.35031 -2.09186,1.83334 -7.93959,1.83334 -7.91968,0 -7.9414,0.0109 -8.66547,4.33333 -0.6926,4.1346 -7.39494,52.98216 -7.39494,53.89532 0,0.24091 -4.2,0.43802 -9.33334,0.43802 -5.13333,0 -9.32251,-0.45 -9.30929,-1 z m 46.05732,-2.66666 c 0.37475,-2.01667 2.69638,-18.25331 5.15918,-36.08141 2.4628,-17.82811 4.81606,-32.75298 5.22948,-33.16639 0.41341,-0.41342 4.67958,-1.15822 9.48037,-1.65512 7.51306,-0.77763 8.65122,-0.61518 8.17226,1.16639 -0.30606,1.13842 -0.93117,4.46985 -1.38914,7.40318 l -0.83267,5.33334 4.86023,-5.70689 c 6.9699,-8.18404 11.25684,-10.1276 17.92921,-8.12851 5.924,1.77488 6.04852,2.24949 3.4548,13.16873 -1.41004,5.9361 -2.22492,7.27179 -4.27684,7.01034 -1.3942,-0.17765 -4.93491,-0.68211 -7.86824,-1.12102 -4.71184,-0.70503 -5.92631,-0.27896 -10.42198,3.65633 l -5.08864,4.45435 -3.23749,22.66667 c -1.78063,12.46667 -3.24074,23.11667 -3.2447,23.66667 -0.004,0.55 -4.19219,1 -9.30719,1 h -9.3 z m 124.0071,0 c 0.37865,-2.01667 2.72122,-18.27424 5.2057,-36.12793 2.48448,-17.85369 4.83455,-32.77857 5.22238,-33.1664 0.38782,-0.38782 4.65233,-1.11368 9.47667,-1.61302 l 8.77154,-0.90789 -0.68615,3.40762 c -0.69182,3.43573 -10.0786,69.83237 -10.0786,71.29015 0,0.43127 -4.185,0.78413 -9.3,0.78413 h -9.3 z m 14.92986,-84.66668 c -3.83428,-2.96126 -3.53692,-10.45854 0.56643,-14.28139 2.89099,-2.69337 9.31723,-3.56791 13.74167,-1.87009 5.31315,2.03884 4.8164,13.55407 -0.71234,16.51296 -3.41664,1.82853 -11.02192,1.62632 -13.59576,-0.36148 z"
         id="path16"
         sodipodi:nodetypes="ssssssscsssssssssssscssscsssssssssscssssssssssssscsssssscssscssssscssscssssss" />
      <path
         d="m 99.483323,284.64275 c -3.02834,-0.98876 -6.74878,-2.66816 -8.26764,-3.73201 l -2.76156,-1.93428 3.18884,-6.88278 3.18884,-6.88279 7.102717,3.25173 c 7.35661,3.36796 12.27778,3.28787 13.62455,-0.22175 0.94016,-2.45002 -0.36598,-4.99178 -9.65299,-18.78488 -6.437027,-9.5603 -7.485667,-12.02235 -7.950517,-18.66666 -0.44556,-6.36842 -0.01,-8.43755 2.593267,-12.32049 8.0112,-11.94897 25.33003,-13.80193 39.55595,-4.23213 1.43339,0.96424 1.09962,2.54547 -1.70594,8.08198 l -3.48798,6.88319 -5.91336,-3.46546 c -7.06755,-4.14186 -11.81766,-3.94555 -12.44928,0.5145 -0.30042,2.12143 2.43739,7.33032 8.58107,16.32609 8.14326,11.92362 9.07023,13.95831 9.51471,20.88459 0.3885,6.05385 -0.0935,8.60788 -2.28329,12.09795 -5.12535,8.16886 -21.67446,12.74097 -32.877387,9.0832 z"
         style="fill:#b5c811"
         id="path1-3" />
      <g
         id="g18"
         transform="translate(-0.26814432,-107.3157)">
        <path
           id="path1-4"
           style="fill:#b5c811"
           d="m 321.64344,316.81723 c -1.34463,-0.0203 -3.26864,0.10968 -5.98437,0.36328 -4.87104,0.45487 -9.06616,1.03686 -9.32227,1.29297 -0.40825,0.40826 -12.46601,72.14602 -12.48831,74.72985 -0.005,0.55 4.14368,1 9.21875,1 10.75422,0 9.51464,2.23846 12.7539,-23.04882 2.1679,-16.92366 4.82362,-23.98807 11.75782,-31.28516 4.56046,-4.79915 11.06376,-5.93261 12.5039,-2.17969 0.45442,1.18421 -0.76415,13.33426 -2.70898,27 -1.94484,13.66577 -3.53588,25.89636 -3.53516,27.17969 10e-4,1.99594 1.32872,2.33398 9.17383,2.33398 h 9.16992 l 1.41797,-9.66796 c 6.33445,-43.18863 7.36685,-53.99951 5.57227,-58.33204 -4.3648,-10.53754 -20.15723,-10.26155 -32.99805,0.57813 -2.38334,2.01192 -4.33399,3.11883 -4.33399,2.45898 0,-1.79829 2.67582,-8.18071 2.67582,-10.94665 0,-0.99182 -0.632,-1.44272 -2.87305,-1.47656 z"
           sodipodi:nodetypes="ssssssssssscssssss" />
        <path
           id="path1-4-1"
           style="fill:#b5c811"
           d="m 335.27388,392.96743 c -0.005,0.55 4.14368,1 9.21875,1 10.75422,0 9.51464,2.23846 12.7539,-23.04882 2.1679,-16.92366 4.82362,-23.98807 11.75782,-31.28516 4.56046,-4.79915 11.06376,-5.93261 12.5039,-2.17969 0.45442,1.18421 -0.76415,13.33426 -2.70898,27 -1.94484,13.66577 -3.53588,25.89636 -3.53516,27.17969 10e-4,1.99594 1.32872,2.33398 9.17383,2.33398 h 9.16992 l 1.41797,-9.66796 c 6.33445,-43.18863 7.36685,-53.99951 5.57227,-58.33204 -4.3648,-10.53754 -18.68334,-8.22383 -32.99805,0.57813 -27.09621,16.66116 -31.37602,30.93377 -32.32617,66.42187 z"
           sodipodi:nodetypes="sssssssscssss" />
      </g>
    </g>
    <g
       id="g17"
       transform="translate(-191.44593,-154.04723)">
      <path
         d="m 395.99095,363.85727 c 9.74251,3.13438 15.41547,11.24229 16.74128,23.92697 2.10099,20.10117 -7.92245,42.10237 -22.73027,49.89236 -7.22791,3.8024 -20.58313,4.00619 -28.50277,0.43493 -3.09291,-1.39471 -5.62347,-2.67005 -5.62347,-2.83409 0,-0.94936 6.72587,-15.29674 7.17091,-15.29674 0.29583,0 3.1534,1.18682 6.35015,2.63738 10.66659,4.84009 15.82747,2.70079 20.50786,-8.50094 2.4408,-5.84167 4.09727,-21.46258 2.8169,-26.56401 -2.10794,-8.39867 -9.32441,-9.8335 -17.96756,-3.57243 -3.03701,2.2 -6.05582,4 -6.70847,4 -0.65264,0 -2.82459,-2.14749 -4.82656,-4.7722 l -3.63993,-4.7722 3.57872,-3.73538 c 8.02985,-8.38136 24.04563,-13.6708 32.83321,-10.84365 z"
         style="fill:#b5c811"
         id="path1-31"
         transform="translate(-0.25468598,-58.797084)" />
      <g
         id="g15"
         transform="translate(120.22593,-20.681445)">
        <path
           d="m 231.59767,332.57755 c 1.81764,-1.77867 2.52955,-2.98158 2.53396,-15.71125 0.005,-14.06361 2.60265,-25.69111 5.7398,-25.69111 0.6537,0 1.18856,2.96459 1.18856,6.58798 0,7.37547 2.14627,10.18462 3.41257,4.46655 3.05001,-13.77248 8.91565,-27.05453 11.94786,-27.05453 2.9317,0 2.56047,12.55465 -0.67657,22.88121 -4.27976,13.65299 -3.34808,14.57779 4.07368,4.04357 6.58247,-9.34296 10.57579,-12.05693 10.57579,-7.18758 0,3.22825 -9.0607,21.7853 -16.00777,32.78519 -6.62251,44.45879 -32.39207,14.27828 -22.78788,4.87997 z"
           style="fill:#b0ca09"
           id="path1-2" />
        <path
           d="m 206.22222,457.44444 c -4.44179,-4.44179 10.27481,-96.40407 17.78241,-111.12019 3.01987,-5.91943 6.0601,-7.99092 11.7279,-7.99092 9.22488,0 14.3835,8.74901 13.20571,22.39682 -1.33518,15.47163 -8.54305,34.76964 -28.61153,76.60318 -9.24237,19.2661 -11.59499,22.62061 -14.10449,20.11111 z"
           style="fill:#ee7d01"
           id="path1" />
      </g>
    </g>
    <g
       id="g19"
       transform="translate(-18.72313,-106.71985)">
      <path
         d="m 263.0193,333.80711 c -9.74251,-3.13438 -15.41547,-11.24229 -16.74128,-23.92697 -2.10099,-20.10117 7.92245,-42.10237 22.73027,-49.89236 7.22791,-3.8024 20.58313,-4.00619 28.50277,-0.43493 3.09291,1.39471 5.62347,2.67005 5.62347,2.83409 0,0.94936 -6.72587,15.29674 -7.17091,15.29674 -0.29583,0 -3.1534,-1.18682 -6.35015,-2.63738 -10.66659,-4.84009 -15.82747,-2.70079 -20.50786,8.50094 -2.4408,5.84167 -4.09727,21.46258 -2.8169,26.56401 2.10794,8.39867 9.32441,9.8335 17.96756,3.57243 3.03701,-2.2 6.05582,-4 6.70847,-4 0.65264,0 2.82459,2.14749 4.82656,4.7722 l 3.63993,4.7722 -3.57872,3.73538 c -8.02985,8.38136 -24.04563,13.6708 -32.83321,10.84365 z"
         style="fill:#b5c811"
         id="path1-31-0" />
      <path
         d="m 313.36794,257.38231 c -1.34463,-0.0203 -3.26864,0.10968 -5.98437,0.36328 -4.87104,0.45487 -9.06616,1.03686 -9.32227,1.29297 -0.40825,0.40826 -12.46601,72.14602 -12.48831,74.72985 -0.005,0.55 4.14368,1 9.21875,1 10.75422,0 9.51464,2.23846 12.7539,-23.04882 0.62659,-4.89143 -0.007,-6.95389 6.01953,-41.91407 0.30548,-1.77215 2.67582,-8.18071 2.67582,-10.94665 0,-0.99182 -0.632,-1.44272 -2.87305,-1.47656 z"
         style="fill:#b5c811"
         id="path1-47" />
    </g>
  </g>
</svg>

sieve

0 → 100644
+52 −0
Original line number Diff line number Diff line
require ["fileinto", "spamtestplus"];
require ["relational", "comparator-i;ascii-numeric"];
require "imap4flags";

# Catch the usual suspects
if address :is "to" ["intern@chaosdorf.de", "intern@lists.ccc.de"] {
	keep;
	stop;
}

# Filter already marked mails into Junk folder
if header :contains "Subject" "{-SPAM-}" {
	addflag "\\Seen";
	fileinto "Junk";
	stop;
}

# Filter typical keywords
if header :contains "Subject" [
	"Müheloses Reinigen",
	"Gelenkschmerzen loswerden",
	"Wiederherstellung des Hörvermögens",
	"Brauchen Sie einen Kredit",
	"Microchip Request",
	"Meeting Request",
	"Wie man Diabetes schnell und richtig behandelt",
	"Website Upgrade Opportunity",
	"Direkt aus China",
	"Wiederherstellung der Gelenke in nur 1 Kur",
	"You Received A Dropbox Document",
	"Prostatitis",
	"Your Business Needs",
	"Wirksame Behandlung von",
	"Stabilisierung des Blutdrucks",
	"Wichtige Aktualisierung Ihrer Kontodaten"
] {
	fileinto "Quarantine";
	stop;
}

# Quarantine mails with spam score >0
#if header :contains "X-Spam-Status" " " {
#	if spamtest :value "ge" :comparator "i;ascii-numeric" "0" {
#	if header :value "ge" :comparator "i;ascii-numeric" "x-spam-score" "0" {
#		fileinto "Quarantine";
#		stop;
#	}
#}

# Required so you get mail at all :)
# Comment out for a chill day.
keep;