From 23f0e1561767dd8a396188e317bae5920d171ea8 Mon Sep 17 00:00:00 2001 From: erdgeist Date: Sun, 16 Aug 2015 16:38:25 +0200 Subject: Initial import of my nikola website --- files/arts/software/Code/elektropost/maildroprc | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 files/arts/software/Code/elektropost/maildroprc (limited to 'files/arts/software/Code/elektropost/maildroprc') 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 @@ +import EXT +import HOST + +#This just bloody won't work for me.. don't know why +VHOME=`/usr/local/vpopmail/bin/vuserinfo -d $EXT@$HOST` +#VHOME=/usr/local/vpopmail/domains/$HOST/$EXT + +if (/^X-Spam-Flag: *YES/) +{ + exception { + TMP=`if [ ! -d $VHOME/Maildir/.Junk ]; then /usr/local/bin/maildirmake -f Junk $VHOME/Maildir/; fi` + TMP=`if ! grep -q ^Junk$ $VHOME/Maildir/.subscriptions; then echo Junk >> $VHOME/Maildir/.subscriptions; fi` + to "$VHOME/Maildir/.Junk/" + } +} +else +{ + exception { + to "$VHOME/Maildir/" + } +} -- cgit v1.2.3