File: junkfilter.opt

package info (click to toggle)
junkfilter 19990331-1
  • links: PTS
  • area: main
  • in suites: potato
  • size: 336 kB
  • ctags: 6
  • sloc: sh: 155; makefile: 36
file content (65 lines) | stat: -rw-r--r-- 2,028 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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
# junkfilter
# a junk e-mail filter system for procmail
# Copyright 1997-98, Gregory Sutter <gsutter@pobox.com>
#
# $Id: junkfilter.opt,v 2.2 1998/10/15 17:53:26 gsutter Exp $
#
# Please read the file "junkfilter.readme" and the page
# http://www.pobox.com/~gsutter/junkfilter/ before using
# junkfilter.  junkfilter is copyright 1997-98 Gregory
# Sutter and is licensed under the terms of the GNU
# General Public License, version 2.  See the file
# junkfilter.readme for details.

# Opt section, for options specified in junkfilter.config

JFSEC=Opt

# Is the recipient's email address in the To: or Cc: field?
:0
* $ $JF_OPT_NOTRECIP^0
{
	:0
	* ! ^(To|Cc):.*$JFMAILADDRESS
	{ JFMATCH="$JFSEC: Recipient address not in To: or Cc: header" INCLUDERC=$JFDIR/junkfilter.match }
}

# To: or Cc: header with more than 60 recipients.
:0
* $ $JF_OPT_60RECIP^0
{
	:0
	* ^TO_.*@.*,.*@.*,.*@.*,.*@.*,.*@.*,.*@.*,.*@.*,.*@.*,.*@.*,.*@.*,.*@.*,.*@.*,.*@.*,.*@.*,.*@.*,.*@.*,.*@.*,.*@.*,.*@.*,.*@.*,.*@.*,.*@.*,.*@.*,.*@.*,.*@.*,.*@.*,.*@.*,.*@.*,.*@.*,.*@.*,.*@.*,.*@.*,.*@.*,.*@.*,.*@.*,.*@.*,.*@.*,.*@.*,.*@.*,.*@.*,.*@.*,.*@.*,.*@.*,.*@.*,.*@.*,.*@.*,.*@.*,.*@.*,.*@.*,.*@.*,.*@.*,.*@.*,.*@.*,.*@.*,.*@.*,.*@.*,.*@.*,.*@.*,.*@.*,.*@.* 
	{ JFMATCH="$JFSEC: Sent to more than 60 people" INCLUDERC=$JFDIR/junkfilter.match }
}

# X-UIDL header
:0
* $ $JF_OPT_XUIDL^0
{
	:0
	* ^X-UIDL:
	{ JFMATCH="$JFSEC: X-UIDL header present" INCLUDERC=$JFDIR/junkfilter.match }
}

# msn.com is a spammer haven and I'm sick of it.
:0
* $ $JF_OPT_MSN^0
{
	:0
	* ^Received:.*\.msn\.com\>
	{ JFMATCH="$JFSEC: Received from msn.com" INCLUDERC=$JFDIR/junkfilter.match }
}

# this is only used if you've elected to send back junk which passes
# the filter. it is the only recipe in junkfilter which touches the mail.
:0
* $ $JF_OPT_SENDBACK^0
{
	:0 f
	| $JFFORMAIL -i "X-jf: $JFVERSION, 1:$JF_ONE,2:$JF_TWO,3:$JF_THREE,4:$JF_FOUR,ad:$JF_ADDRESSES,bo:$JF_BODYCHK,di:$JF_DIALUPS,do:$JF_DOMAINS,he:$JF_HEADERS,ip:$JF_IP,us:$JF_USER"
}

JFSEC

# EOF junkfilter.opt