]> 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:

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