1 |
ccflib |
1.1 |
# $Id$ |
2 |
|
|
# |
3 |
|
|
# 2005-02-04 (EO) |
4 |
|
|
# |
5 |
|
|
VERBOSE=on |
6 |
|
|
#LOGABSTRACT=all |
7 |
|
|
# |
8 |
|
|
MAILDIR=$HOME/Mail |
9 |
|
|
TAG=`date +%Y-%m` |
10 |
|
|
LOGFILE=$MAILDIR/procmail-$TAG.log |
11 |
|
|
INBOX=$MAILDIR/inbox-$TAG |
12 |
|
|
SPAM_INBOX=$MAILDIR/spam_inbox-$TAG |
13 |
|
|
DUMMY=`test -d $INBOX || mkdir $INBOX` |
14 |
|
|
|
15 |
|
|
# first check for SPAM with SpamAssassin |
16 |
|
|
|
17 |
|
|
:0fw |
18 |
|
|
| $HOME/bin/spamc |
19 |
|
|
|
20 |
|
|
# now, if the message is spam, store it in a special folder |
21 |
|
|
|
22 |
|
|
:0: |
23 |
|
|
* ^X-Spam-Status: Yes |
24 |
|
|
$SPAM_INBOX/. |
25 |
|
|
|
26 |
|
|
:0: |
27 |
|
|
* ^Subject*.SPAM: |
28 |
|
|
$SPAM_INBOX/. |
29 |
|
|
|
30 |
|
|
# if not spam, then reroute it to xmm-it and leave a local copy |
31 |
|
|
|
32 |
|
|
:0 |
33 |
|
|
{ |
34 |
|
|
:0 c |
35 |
|
|
! xmm-it@xmm.vilspa.esa.es |
36 |
|
|
|
37 |
|
|
:0: |
38 |
|
|
${INBOX}/. |
39 |
|
|
} |