
#Konfigdatei fuer procmail

PATH=/bin:/usr/bin:/bin:/usr/local/bin:
MAILDIR="/home/smo/mail/" 
DEFAULT="/home/smo/mail/privat-steve"
LOGFILE="/home/smo/procmail.log"
TRAP="artsplay /home/smo/sounds/mesage4u.wav"
VERBOSE=on

############ Mails RFC-konform machen ########

# PGP-Mime Header einfuegen

:0
* !^Content-Type: message/
* !^Content-Type: multipart/
* !^Content-Type: application/pgp
{
:0 fBw
* ^-----BEGIN PGP MESSAGE-----
* ^-----END PGP MESSAGE-----
| formail \
-i "Content-Type: application/pgp; format=text; x-action=encrypt"

:0 fBw
* ^-----BEGIN PGP SIGNED MESSAGE-----
* ^-----BEGIN PGP SIGNATURE-----
* ^-----END PGP SIGNATURE-----
| formail \
-i "Content-Type: application/pgp; format=text; x-action=sign"
}

############ Autoresponder #############

# PGP-Key
:0 Hhc
* !^X-Loop: keyresp@fmb-online.de
* ^Subject: spgpk
| (formail -rtb -I"Subject: PGP-Key von Steve Moeckel" \
	-I"From: Steve Moeckel <steve@fmb-online.de>" \
	-A"X-Loop: pgp-key";\
	cat /home/smo/.pgp/currentkey.asc\
) | $SENDMAIL -t -oi
:0 A:
$DEFAULT


############## Spamkiller #############

# Spam von kbx7

:0 Hfbw
* ^To[ :].*@kbx7.de
| sed -e '/^-----/,/~~~~~^/d'

############# Mailsortierung ############
:0 H
* ^From: noreply@freshmeat.net
{
:0 c
| date +"%H:%M fm Update-News" >> /home/smo/.mailmon
:0
fm
}

# PDS-Newsletter
:0 H
* ^From: kontakt@pds-lv17.de
{
:0 c
| date +"%H:%M LV17-Newsletter" >> /home/smo/.mailmon
:0
lv17
}


# hope-2000
:0 H
* ^Reply-To: "Gründung eines Vereins fuer Netzkultur" <hope-2000.org@kbx7.de>
{
:0 c
| date +"%H:%M Neue Mail von Hope" >> /home/smo/.mailmon
:0
hope
}

# Rest
:0 H
* ^From:
{
:0 c
|date +"%H:%M Neue private Mail" >> /home/smo/.mailmon
:0
privat-steve
}


