]> git.madduck.net Git - etc/mailfilter.git/blob - procmail/justme

madduck's git repository

Every one of the projects in this repository is available at the canonical URL git://git.madduck.net/madduck/pub/<projectpath> — see each project's metadata for the exact URL.

All patches and comments are welcome. Please squash your changes to logical commits before using git-format-patch and git-send-email to patches@git.madduck.net. If you'd read over the Git project's submission guidelines and adhered to them, I'd be especially grateful.

SSH access, as well as push access can be individually arranged.

If you use my repositories frequently, consider adding the following snippet to ~/.gitconfig and using the third clone URL listed for each project:

[url "git://git.madduck.net/madduck/"]
  insteadOf = madduck:

refactor justme
[etc/mailfilter.git] / procmail / justme
1 :0 H
2 *$ MSGID ?? ^<.+@$RE_MYDOMAIN>
3 {
4   JUSTME="from machine in my domain"
5 #  SKIP_SPAMCHECKS=from-mydomain
6 }
7
8 :0 EH
9 *$ ^(References|In-Reply-To):.*<.+@$RE_MYDOMAIN>
10 {
11   JUSTME="in-reply-to/referenced"
12   SKIP_SPAMCHECKS=in-reply-to/referenced
13 }
14
15 :0 E
16 * ? echo "$ORIGINAL_TO" | $EGREP -qif $CONF/justme-addresses
17 {
18   :0
19   * ? echo "$ORIGINAL_TO" | $EGREP -qif $CONF/justme-address-exceptions
20   { JUSTME="explicitly excepted address" }
21
22   :0 E
23   *$ 1^0 B ?? .*\<$RE_FIRSTNAME$RE_SPACE_NEWLINE+$RE_LASTNAME\>
24   *$ 1^0 B ?? .*\<$RE_LASTNAME[,]?$RE_SPACE_NEWLINE*$RE_FIRSTNAME\>
25   { JUSTME="full name reference" }
26
27   :0 E
28   *$ B ?? .*\<$RE_LASTNAME\>
29   { JUSTME="last name reference" }
30
31   :0 E
32   *  1^0 B ?? .*\<madduck\>
33   * -1^0 B ?? mass\.madduck\.net
34   { JUSTME="nickname reference" }
35
36   :0 EBH
37   *$ ? $EGREP -qif $CONF/justme-keyword-exceptions
38   { JUSTME="keyword reference" }
39
40   :0 E
41   * MSGID ?? ^<mailman
42   {
43     :0
44     * FROM ?? -request@
45     * SUBJECT ?? ^confirm [0-9a-f]+$
46     { JUSTME="mailman confirmation" }
47
48     :0 E
49     * FROM ?? -bounces@
50     * SUBJECT ?? ^You have been unsubscribed
51     { JUSTME="mailman confirmation" }
52
53     :0 E
54     * FROM ?? -bounces@
55     * SUBJECT ?? .+ mailing list reminder$
56     { JUSTME="mailman password reminder" }
57   }
58
59   :0 E
60   * FROM ?? ^[Mm]ajordomo@
61   * SUBJECT ?? ^Confirmation for
62   { JUSTME="majordomo confirmation" }
63
64   :0 E
65   * FROM ?? ^noreply@googlegroups\.com$
66   * SUBJECT ?? ^Google Groups: Please confirm
67   { JUSTME="googlegroups confirmation" }
68
69   :0 E
70   * FROM ?? ^Yahoo! Groups <confirm-.+@yahoogroups\.com>$
71   * SUBJECT ?? ^Please confirm your request to join
72   { JUSTME="yahoogroups confirmation" }
73
74   :0 E
75   * FROM ?? ^SmartList <.+-request@.+>
76   * SUBJECT ?? ^CONFIRM s[0-9]+$
77   { JUSTME="smartlist confirmation" }
78
79   :0 E
80   * FROM ?? ^Launchpad Email Validator <noreply@launchpad\.net>
81   * SUBJECT ?? ^Launchpad: Validate your email address$
82   { JUSTME="launchpad validation" }
83
84   :0 E
85   {
86     LOG="justme:      discarding$NL"
87     SWITCHRC=$PMDIR/discard
88   }
89 }
90
91 :0
92 * JUSTME ?? .
93 { LOG="justme:      passing; $JUSTME$NL" }
94
95 :0 E
96 { LOG="justme:      passing; UNKNOWN$NL" }
97
98 # vim:ft=procmail