summaryrefslogtreecommitdiffstats
path: root/etc/procmailrc
diff options
context:
space:
mode:
Diffstat (limited to 'etc/procmailrc')
-rw-r--r--etc/procmailrc9
1 files changed, 5 insertions, 4 deletions
diff --git a/etc/procmailrc b/etc/procmailrc
index ea35845..c587f7f 100644
--- a/etc/procmailrc
+++ b/etc/procmailrc
@@ -3,8 +3,12 @@ PATH = /usr/bin:/bin
3LOGFILE = $HOME/log/procmail.log 3LOGFILE = $HOME/log/procmail.log
4GITHUB_FILTER = $HOME/libexec/filter-github-emails 4GITHUB_FILTER = $HOME/libexec/filter-github-emails
5DEFAULT_RECIPIENT = admin@monitoring-plugins.org 5DEFAULT_RECIPIENT = admin@monitoring-plugins.org
6FROM = `formail -c -x 'From ' | cut -d ' ' -f 1`
6EXTENSION = $1 7EXTENSION = $1
7 8
9:0 fhw
10| formail -A "X-Original-From: $FROM"
11
8# 12#
9# Handle emails sent to <plugins+github@monitoring-plugins.org>. 13# Handle emails sent to <plugins+github@monitoring-plugins.org>.
10# 14#
@@ -29,11 +33,8 @@ EXTENSION = $1
29:0 33:0
30* ! ^X-Loop: plugins@monitoring-plugins\.org 34* ! ^X-Loop: plugins@monitoring-plugins\.org
31{ 35{
32 FROM = `formail -c -x 'From ' | cut -d ' ' -f 1`
33
34 :0 fhw 36 :0 fhw
35 | formail -A 'X-Loop: plugins@monitoring-plugins.org' \ 37 | formail -A 'X-Loop: plugins@monitoring-plugins.org'
36 -A "X-Original-From: $FROM"
37 38
38 :0 39 :0
39 ! $DEFAULT_RECIPIENT 40 ! $DEFAULT_RECIPIENT