summaryrefslogtreecommitdiff
path: root/files/arts/software/Code/elektropost/maildroprc
diff options
context:
space:
mode:
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}