File: procmailrc.sample

package info (click to toggle)
junkfilter 20010529-1
  • links: PTS
  • area: main
  • in suites: woody
  • size: 304 kB
  • ctags: 1
  • sloc: sh: 109; makefile: 34
file content (48 lines) | stat: -rw-r--r-- 1,133 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
# junkfilter
# a junk email filter system for procmail 
# Copyright 1997-2001 Gregory Sutter <gsutter@zer0.org>
#
# $Id: procmailrc.sample,v 2.4 2001/05/28 20:10:50 gsutter Exp $
#
# Please read the file "README" and the page
# http://junkfilter.zer0.org/ before using junkfilter.

# This is a simple sample .procmailrc that calls junkfilter.
# It will work as-is, but you may want to change $PMDIR and $JFDIR.

SHELL=/bin/sh
PATH="$HOME/bin:/usr/bin:/usr/local/bin:/usr/include:/usr/local/sbin:/bin:/sbin:/usr/sbin"
MAILDIR=$HOME/mail
PMDIR=$HOME/.procmail
JFDIR=$HOME/.procmail/junkfilter
DEFAULT="inbox"
LOGFILE=$PMDIR/log
LOGABSTRACT=all
VERBOSE=no

# Procmail mailing list
:0 :
* ^Resent-From:.*procmail@Informatik.RWTH-Aachen.DE
| formail -i "X-Fkey: procmail" >> procmail

# Call junkfilter
INCLUDERC=$JFDIR/junkfilter

# Take action if junkfilter caught a junkmail.
:0
* JFEXP ?? .
{
	:0 f
	* JFSTATUS ?? 1
	| formail -i "X-junkfilter: $JFVERSION" -i "X-Spammer: $JFEXP"

	:0 E :
	| formail -i "X-junkfilter: $JFVERSION" -i "X-Spammer: $JFEXP" \
	>> junkmail
}

# Catches everything else.
:0 :
inbox

# EOF procmailrc.sample