diff options
author | Holger Weiss <holger@zedat.fu-berlin.de> | 2014-02-02 10:08:41 (GMT) |
---|---|---|
committer | Holger Weiss <holger@zedat.fu-berlin.de> | 2014-02-02 10:08:41 (GMT) |
commit | 151a5ddb244143d69116a6fcd884c94cdefd70dd (patch) | |
tree | 19f6a26ed32d5a396fb2c96ead82ead77c03c3bb /etc/procmailrc | |
parent | adad5fbdcaf4115b751c6caee3af401b33e2efdc (diff) | |
download | site-151a5ddb244143d69116a6fcd884c94cdefd70dd.tar.gz |
procmailrc: Add X-Original-From to all emails
Add an X-Original-From to all emails touched by procmail(1). All emails
are forwarded (as long as there's no loop), so that header line might
always be interesting.
Diffstat (limited to 'etc/procmailrc')
-rw-r--r-- | etc/procmailrc | 9 |
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 | |||
3 | LOGFILE = $HOME/log/procmail.log | 3 | LOGFILE = $HOME/log/procmail.log |
4 | GITHUB_FILTER = $HOME/libexec/filter-github-emails | 4 | GITHUB_FILTER = $HOME/libexec/filter-github-emails |
5 | DEFAULT_RECIPIENT = admin@monitoring-plugins.org | 5 | DEFAULT_RECIPIENT = admin@monitoring-plugins.org |
6 | FROM = `formail -c -x 'From ' | cut -d ' ' -f 1` | ||
6 | EXTENSION = $1 | 7 | EXTENSION = $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 |