blob: 5d07a7c13f0486f374f62046346da17ce967d405 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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/"
}
}
|