blob: ea35845561541742a99d14ebc0669119271cde1b (
plain)
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
|
SHELL = /bin/sh
PATH = /usr/bin:/bin
LOGFILE = $HOME/log/procmail.log
GITHUB_FILTER = $HOME/libexec/filter-github-emails
DEFAULT_RECIPIENT = admin@monitoring-plugins.org
EXTENSION = $1
#
# Handle emails sent to <plugins+github@monitoring-plugins.org>.
#
:0
* EXTENSION ?? ^^github^^
* ! ^X-Loop: plugins@monitoring-plugins\.org
{
:0 fw
| $GITHUB_FILTER
:0 fhw
* ^To:(.*[^-a-zA-Z0-9_.])?devel@monitoring-plugins\.org
| formail -A 'X-Loop: plugins@monitoring-plugins.org'
:0 a
! devel@monitoring-plugins.org
}
#
# Handle emails that shouldn't be forwarded to the mailing list.
#
:0
* ! ^X-Loop: plugins@monitoring-plugins\.org
{
FROM = `formail -c -x 'From ' | cut -d ' ' -f 1`
:0 fhw
| formail -A 'X-Loop: plugins@monitoring-plugins.org' \
-A "X-Original-From: $FROM"
:0
! $DEFAULT_RECIPIENT
}
# vim:set filetype=procmail:
|