summaryrefslogtreecommitdiff
path: root/files/arts/software/Code/elektropost/maildroprc
diff options
context:
space:
mode:
authorerdgeist <erdgeist@bauklotz.local>2015-08-16 16:38:25 +0200
committererdgeist <erdgeist@bauklotz.local>2015-08-16 16:38:25 +0200
commit23f0e1561767dd8a396188e317bae5920d171ea8 (patch)
treea67f44e39ad8a45e42d60634488a65c37f3ad432 /files/arts/software/Code/elektropost/maildroprc
Initial import of my nikola website
Diffstat (limited to 'files/arts/software/Code/elektropost/maildroprc')
-rw-r--r--files/arts/software/Code/elektropost/maildroprc21
1 files changed, 21 insertions, 0 deletions
diff --git a/files/arts/software/Code/elektropost/maildroprc b/files/arts/software/Code/elektropost/maildroprc
new file mode 100644
index 0000000..5d07a7c
--- /dev/null
+++ b/files/arts/software/Code/elektropost/maildroprc
@@ -0,0 +1,21 @@
1import EXT
2import HOST
3
4#This just bloody won't work for me.. don't know why
5VHOME=`/usr/local/vpopmail/bin/vuserinfo -d $EXT@$HOST`
6#VHOME=/usr/local/vpopmail/domains/$HOST/$EXT
7
8if (/^X-Spam-Flag: *YES/)
9{
10 exception {
11 TMP=`if [ ! -d $VHOME/Maildir/.Junk ]; then /usr/local/bin/maildirmake -f Junk $VHOME/Maildir/; fi`
12 TMP=`if ! grep -q ^Junk$ $VHOME/Maildir/.subscriptions; then echo Junk >> $VHOME/Maildir/.subscriptions; fi`
13 to "$VHOME/Maildir/.Junk/"
14 }
15}
16else
17{
18 exception {
19 to "$VHOME/Maildir/"
20 }
21}