commit | author | age | ||
b61081 | 1 | |
T | 2 | SPAMDIR="Junk" |
3 | SPAMDIRFULL="$DEFAULT/.Junk" | |
4 | ||
5 | if ( /^X-Spam-Flag: YES$/ ) | |
6 | { | |
7 | exception { | |
8 | ||
9 | `test -e $SPAMDIRFULL` | |
10 | if ( $RETURNCODE != 0 ) | |
11 | { | |
12 | `maildirmake -f $SPAMDIR $DEFAULT` | |
13 | `chown vmail:vmail -R $SPAMDIRFULL` | |
14 | `chmod 0700 $SPAMDIRFULL` | |
15 | `echo INBOX.$SPAMDIR >> $DEFAULT/courierimapsubscribed` | |
16 | } | |
17 | to "$SPAMDIRFULL/" | |
18 | } | |
19 | } |