From 15a0c6e8561c2540b51e5466f8f317d386d16ee3 Mon Sep 17 00:00:00 2001 From: Robin Houston Date: Mon, 25 Jul 2011 09:15:59 +0100 Subject: Correct the mutt syntax, for sending notification mails about import errors. Closes #90. --- script/mailin | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'script') 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 -- cgit v1.2.3