aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRobin Houston <robin@lenny.robin>2011-07-25 09:15:59 +0100
committerRobin Houston <robin.houston@gmail.com>2011-07-26 16:28:56 +0100
commit15a0c6e8561c2540b51e5466f8f317d386d16ee3 (patch)
treec66a96dc225428d7a8612f7373e974b6e94f666d
parent0eca9e50ef0ec7d34ae4cbb943d37d52b478ea99 (diff)
Correct the mutt syntax, for sending notification mails about import errors.
Closes #90.
-rwxr-xr-xscript/mailin2
1 files changed, 1 insertions, 1 deletions
diff --git a/script/mailin b/script/mailin
index 738034c26..733eaff3d 100755
--- a/script/mailin
+++ b/script/mailin
@@ -22,7 +22,7 @@ then
# send error to administators (use mutt for MIME encoding)
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. The email was returned with an exit code 75, which for Exim at least means the MTA will 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."
- echo "$BODY" | /usr/bin/mutt -s "$SUBJ" -a $OUTPUT -a $INPUT $OPTION_CONTACT_EMAIL
+ echo "$BODY" | /usr/bin/mutt -s "$SUBJ" -a $OUTPUT $INPUT -- $OPTION_CONTACT_EMAIL
# tell exim error was temporary, so try again later (no point bouncing message to authority)
rm -f $OUTPUT