diagram for spam learning
This commit is contained in:
parent
891d985386
commit
c59ba5af1b
2 changed files with 80 additions and 0 deletions
76
drawio/imapsieve-learn-spam.drawio
Normal file
76
drawio/imapsieve-learn-spam.drawio
Normal file
|
|
@ -0,0 +1,76 @@
|
||||||
|
<mxfile host="Electron" agent="Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) draw.io/28.2.5 Chrome/138.0.7204.251 Electron/37.6.1 Safari/537.36" version="28.2.5">
|
||||||
|
<diagram name="Seite-1" id="xoRvxYNhYbXPELqCOjKX">
|
||||||
|
<mxGraphModel dx="1425" dy="828" grid="1" gridSize="10" guides="1" tooltips="1" connect="1" arrows="1" fold="1" page="1" pageScale="1" pageWidth="827" pageHeight="1169" math="0" shadow="0">
|
||||||
|
<root>
|
||||||
|
<mxCell id="0" />
|
||||||
|
<mxCell id="1" parent="0" />
|
||||||
|
<mxCell id="EY0GxazJDWYAO9ivZ3xv-1" value="" style="shape=mxgraph.networks2.icon;aspect=fixed;fillColor=#EDEDED;strokeColor=#000000;gradientColor=#5B6163;network2IconShadow=1;network2bgFillColor=none;labelPosition=center;verticalLabelPosition=bottom;align=center;verticalAlign=top;network2Icon=mxgraph.networks2.user_male;network2IconW=0.8918;network2IconH=1.0003;" vertex="1" parent="1">
|
||||||
|
<mxGeometry x="90" y="179.99" width="44.59" height="50.015" as="geometry" />
|
||||||
|
</mxCell>
|
||||||
|
<mxCell id="EY0GxazJDWYAO9ivZ3xv-2" value="Inbox" style="rounded=0;whiteSpace=wrap;html=1;fillColor=#d5e8d4;strokeColor=default;" vertex="1" parent="1">
|
||||||
|
<mxGeometry x="160" y="160" width="120" height="30" as="geometry" />
|
||||||
|
</mxCell>
|
||||||
|
<mxCell id="EY0GxazJDWYAO9ivZ3xv-3" value="Junk" style="rounded=0;whiteSpace=wrap;html=1;" vertex="1" parent="1">
|
||||||
|
<mxGeometry x="160" y="200" width="70" height="30" as="geometry" />
|
||||||
|
</mxCell>
|
||||||
|
<mxCell id="EY0GxazJDWYAO9ivZ3xv-4" value="Trash" style="rounded=0;whiteSpace=wrap;html=1;" vertex="1" parent="1">
|
||||||
|
<mxGeometry x="160" y="240" width="70" height="30" as="geometry" />
|
||||||
|
</mxCell>
|
||||||
|
<mxCell id="EY0GxazJDWYAO9ivZ3xv-6" value="" style="rounded=0;whiteSpace=wrap;html=1;fillColor=#d5e8d4;strokeColor=#82b366;" vertex="1" parent="1">
|
||||||
|
<mxGeometry x="280" y="160" width="290" height="60" as="geometry" />
|
||||||
|
</mxCell>
|
||||||
|
<mxCell id="EY0GxazJDWYAO9ivZ3xv-5" value="The blue pill for your hardest night. Buy now." style="text;html=1;align=left;verticalAlign=middle;whiteSpace=wrap;rounded=0;fontStyle=1" vertex="1" parent="1">
|
||||||
|
<mxGeometry x="294" y="190" width="266" height="30" as="geometry" />
|
||||||
|
</mxCell>
|
||||||
|
<mxCell id="EY0GxazJDWYAO9ivZ3xv-7" value="" style="endArrow=classic;html=1;rounded=0;strokeWidth=3;" edge="1" parent="1" source="EY0GxazJDWYAO9ivZ3xv-6" target="EY0GxazJDWYAO9ivZ3xv-3">
|
||||||
|
<mxGeometry width="50" height="50" relative="1" as="geometry">
|
||||||
|
<mxPoint x="90" y="380" as="sourcePoint" />
|
||||||
|
<mxPoint x="140" y="330" as="targetPoint" />
|
||||||
|
</mxGeometry>
|
||||||
|
</mxCell>
|
||||||
|
<mxCell id="EY0GxazJDWYAO9ivZ3xv-8" value="From: wienermeds@gmail.com" style="text;html=1;align=left;verticalAlign=middle;whiteSpace=wrap;rounded=0;" vertex="1" parent="1">
|
||||||
|
<mxGeometry x="294" y="160" width="240" height="30" as="geometry" />
|
||||||
|
</mxCell>
|
||||||
|
<mxCell id="EY0GxazJDWYAO9ivZ3xv-9" value="<pre data-language="sh"><code><div class="ec-line"><div class="code"><span style="--0:#82AAFF;--1:#3B61B0">mailbox</span><span style="--0:#D6DEEB;--1:#403F53"> </span><span style="--0:#ECC48D;--1:#3B61B0">Junk</span><span style="--0:#D6DEEB;--1:#403F53"> </span><span style="--0:#ECC48D;--1:#3B61B0">{</span></div></div><div class="ec-line"><div class="code"><span class="indent"> </span><span style="--0:#82AAFF;--1:#3B61B0">sieve_script</span><span style="--0:#D6DEEB;--1:#403F53"> </span><span style="--0:#ECC48D;--1:#3B61B0">spam</span><span style="--0:#D6DEEB;--1:#403F53"> </span><span style="--0:#ECC48D;--1:#3B61B0">{</span></div></div><div class="ec-line"><div class="code"><span class="indent"> </span><span style="--0:#C5E478;--1:#3B61B0">type</span><span style="--0:#D6DEEB;--1:#403F53"> </span><span style="--0:#ECC48D;--1:#3B61B0">=</span><span style="--0:#D6DEEB;--1:#403F53"> </span><span style="--0:#ECC48D;--1:#3B61B0">before</span></div></div><div class="ec-line"><div class="code"><span class="indent"> </span><span style="--0:#82AAFF;--1:#3B61B0">cause</span><span style="--0:#D6DEEB;--1:#403F53"> </span><span style="--0:#ECC48D;--1:#3B61B0">=</span><span style="--0:#D6DEEB;--1:#403F53"> </span><span style="--0:#ECC48D;--1:#3B61B0">copy</span></div></div><div class="ec-line"><div class="code"><span class="indent"> </span><span style="--0:#82AAFF;--1:#3B61B0">path</span><span style="--0:#D6DEEB;--1:#403F53"> </span><span style="--0:#ECC48D;--1:#3B61B0">=</span><span style="--0:#D6DEEB;--1:#403F53"> </span><span style="--0:#ECC48D;--1:#3B61B0"><b>/etc/dovecot/sieve/learn-spam.sieve</b></span></div></div><div class="ec-line"><div class="code"><span class="indent"><span style="--0:#D6DEEB;--1:#403F53"> </span></span><span style="--0:#D6DEEB;--1:#403F53">}</span></div></div><div class="ec-line"><div class="code"><span style="--0:#D6DEEB;--1:#403F53">}</span></div></div></code></pre>" style="rounded=0;whiteSpace=wrap;html=1;align=left;spacingLeft=8;spacingTop=0;" vertex="1" parent="1">
|
||||||
|
<mxGeometry x="190" y="310" width="360" height="120" as="geometry" />
|
||||||
|
</mxCell>
|
||||||
|
<mxCell id="EY0GxazJDWYAO9ivZ3xv-10" value="" style="shape=flexArrow;endArrow=classic;html=1;rounded=0;fillColor=#dae8fc;strokeColor=#6c8ebf;" edge="1" parent="1">
|
||||||
|
<mxGeometry width="50" height="50" relative="1" as="geometry">
|
||||||
|
<mxPoint x="360" y="260" as="sourcePoint" />
|
||||||
|
<mxPoint x="360" y="310" as="targetPoint" />
|
||||||
|
</mxGeometry>
|
||||||
|
</mxCell>
|
||||||
|
<mxCell id="EY0GxazJDWYAO9ivZ3xv-11" value="<pre data-language="sh"><code><div class="ec-line"><div class="code"><pre data-language="sh"><code><div class="ec-line"><div class="code"><span style="--0:#ECC48D;--1:#984E4D">require ["vnd.dovecot.pipe", "copy", "imapsieve"];</span></div></div><div class="ec-line"><div class="code"><span style="--0:#ECC48D;--1:#984E4D">pipe :copy "<b>rspamd-learn-spam.sh</b>";</span></div></div></code></pre></div></div></code></pre>" style="rounded=0;whiteSpace=wrap;html=1;align=left;spacingLeft=8;spacingTop=0;" vertex="1" parent="1">
|
||||||
|
<mxGeometry x="180" y="480" width="380" height="50" as="geometry" />
|
||||||
|
</mxCell>
|
||||||
|
<mxCell id="EY0GxazJDWYAO9ivZ3xv-12" value="" style="shape=flexArrow;endArrow=classic;html=1;rounded=0;fillColor=#dae8fc;strokeColor=#6c8ebf;" edge="1" parent="1">
|
||||||
|
<mxGeometry width="50" height="50" relative="1" as="geometry">
|
||||||
|
<mxPoint x="360" y="430" as="sourcePoint" />
|
||||||
|
<mxPoint x="360" y="480" as="targetPoint" />
|
||||||
|
</mxGeometry>
|
||||||
|
</mxCell>
|
||||||
|
<mxCell id="EY0GxazJDWYAO9ivZ3xv-13" value="<pre data-language="sh"><code><div class="ec-line"><div class="code"><pre data-language="sh"><code><div class="ec-line"><div class="code"><pre data-language="plaintext"><code><div class="ec-line"><div class="code"><span style="--0:#d6deeb;--1:#403f53">#!/bin/sh</span></div></div><div class="ec-line"><div class="code"><span style="--0:#d6deeb;--1:#403f53">exec /usr/bin/rspamc learn_spam</span></div></div></code></pre></div></div></code></pre></div></div></code></pre>" style="rounded=0;whiteSpace=wrap;html=1;align=left;spacingLeft=8;spacingTop=0;" vertex="1" parent="1">
|
||||||
|
<mxGeometry x="240" y="580" width="242" height="50" as="geometry" />
|
||||||
|
</mxCell>
|
||||||
|
<mxCell id="EY0GxazJDWYAO9ivZ3xv-14" value="" style="shape=flexArrow;endArrow=classic;html=1;rounded=0;fillColor=#dae8fc;strokeColor=#6c8ebf;" edge="1" parent="1">
|
||||||
|
<mxGeometry width="50" height="50" relative="1" as="geometry">
|
||||||
|
<mxPoint x="360" y="530" as="sourcePoint" />
|
||||||
|
<mxPoint x="360" y="580" as="targetPoint" />
|
||||||
|
</mxGeometry>
|
||||||
|
</mxCell>
|
||||||
|
<mxCell id="EY0GxazJDWYAO9ivZ3xv-15" value="IMAP sieve" style="text;html=1;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;rotation=90;fillColor=#fff2cc;strokeColor=#d6b656;" vertex="1" parent="1">
|
||||||
|
<mxGeometry x="505" y="355" width="120" height="30" as="geometry" />
|
||||||
|
</mxCell>
|
||||||
|
<mxCell id="EY0GxazJDWYAO9ivZ3xv-17" value="Text" style="text;html=1;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;" vertex="1" parent="1">
|
||||||
|
<mxGeometry x="420" y="400" width="60" height="30" as="geometry" />
|
||||||
|
</mxCell>
|
||||||
|
<mxCell id="EY0GxazJDWYAO9ivZ3xv-19" value="Sieve" style="text;html=1;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;rotation=90;fillColor=#fff2cc;strokeColor=#d6b656;" vertex="1" parent="1">
|
||||||
|
<mxGeometry x="548.13" y="489.63" width="53.75" height="30" as="geometry" />
|
||||||
|
</mxCell>
|
||||||
|
<mxCell id="EY0GxazJDWYAO9ivZ3xv-20" value="Shell" style="text;html=1;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;rotation=90;fillColor=#fff2cc;strokeColor=#d6b656;" vertex="1" parent="1">
|
||||||
|
<mxGeometry x="470" y="590" width="53.75" height="30" as="geometry" />
|
||||||
|
</mxCell>
|
||||||
|
</root>
|
||||||
|
</mxGraphModel>
|
||||||
|
</diagram>
|
||||||
|
</mxfile>
|
||||||
File diff suppressed because one or more lines are too long
|
After Width: | Height: | Size: 50 KiB |
Loading…
Add table
Add a link
Reference in a new issue