diff options
author | erdgeist <erdgeist@bauklotz.local> | 2015-08-16 16:38:25 +0200 |
---|---|---|
committer | erdgeist <erdgeist@bauklotz.local> | 2015-08-16 16:38:25 +0200 |
commit | 23f0e1561767dd8a396188e317bae5920d171ea8 (patch) | |
tree | a67f44e39ad8a45e42d60634488a65c37f3ad432 /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/maildroprc | 21 |
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 @@ | |||
1 | import EXT | ||
2 | import HOST | ||
3 | |||
4 | #This just bloody won't work for me.. don't know why | ||
5 | VHOME=`/usr/local/vpopmail/bin/vuserinfo -d $EXT@$HOST` | ||
6 | #VHOME=/usr/local/vpopmail/domains/$HOST/$EXT | ||
7 | |||
8 | if (/^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 | } | ||
16 | else | ||
17 | { | ||
18 | exception { | ||
19 | to "$VHOME/Maildir/" | ||
20 | } | ||
21 | } | ||