aboutsummaryrefslogtreecommitdiffstats
path: root/script
diff options
context:
space:
mode:
authorLouise Crow <louise.crow@gmail.com>2015-05-12 09:56:40 +0100
committerLouise Crow <louise.crow@gmail.com>2015-05-12 09:56:40 +0100
commitfab06473ece1c256e5b5ebeb7d8ae054af6e9ece (patch)
treedd1251301f233ab90b64f4e2f49843dee5d5eb75 /script
parent3df3c0bfc8c7afe964c7363bed9a02ee7ada06e1 (diff)
parent86457a2cd3edb6a74686568cdd5cdfabccc6499d (diff)
Merge branch 'send-mailimport-errors-to-exception-notification' into rails-3-develop
Diffstat (limited to 'script')
-rwxr-xr-xscript/mailin2
1 files changed, 1 insertions, 1 deletions
diff --git a/script/mailin b/script/mailin
index 65f9d06f2..5f2a9c243 100755
--- a/script/mailin
+++ b/script/mailin
@@ -23,7 +23,7 @@ then
SUBJ="Mail import error for $OPTION_DOMAIN"
BODY="There was an error code $ERROR_CODE returned by the RequestMailer.receive command in script/mailin. See attached for details. This might be quite serious, such as the database was down, or might be an email with corrupt headers that Rails is choking on. We returned the email with an exit code 75, which for Exim at least instructs the MTA to try again later. A well configured installation of this code will separately have had Exim make a backup copy of the email in a separate mailbox, just in case."
FROM="$OPTION_BLACKHOLE_PREFIX@$OPTION_INCOMING_EMAIL_DOMAIN"
- /usr/bin/mutt -e "set use_envelope_from" -e "set envelope_from_address=$FROM" -s "$SUBJ" -a "$OUTPUT" "$INPUT" -- "$OPTION_FORWARD_NONBOUNCE_RESPONSES_TO" <<<"$BODY"
+ /usr/bin/mutt -e "set use_envelope_from" -e "set envelope_from_address=$FROM" -s "$SUBJ" -a "$OUTPUT" "$INPUT" -- "$OPTION_EXCEPTION_NOTIFICATIONS_TO" <<<"$BODY"
# tell exim error was temporary, so try again later (no point bouncing message to authority)
rm -f "$INPUT" "$OUTPUT"