[Logcheck-commits] martin f. krafft: fix auto-submitted header generation

Martin F. Krafft madduck at alioth.debian.org
Sun Aug 31 19:24:22 UTC 2008


Module: logcheck
Branch: master
Commit: e6eb7ca6677d70071411bb90bfc449c5001434ab
URL:    http://git.debian.org/?p=logcheck/logcheck.git;a=commit;h=e6eb7ca6677d70071411bb90bfc449c5001434ab

Author: martin f. krafft <madduck at debian.org>
Date:   Sun Aug 31 20:08:37 2008 +0100

fix auto-submitted header generation

---

 src/logcheck |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/src/logcheck b/src/logcheck
index 573e244..d962325 100755
--- a/src/logcheck
+++ b/src/logcheck
@@ -174,7 +174,8 @@ Also verify that the logcheck user can read all files referenced in
 
 $(export)
 EOF
-	} | mail $MAILARGS -s "Logcheck: $HOSTNAME $DATE exiting due to errors" \
+	} | eval mail $MAILARGS \
+	    -s "'Logcheck: $HOSTNAME $DATE exiting due to errors'" \
 	    "$SENDMAILTO"
     
     elif [ $MAILOUT -eq 1 ]; then
@@ -309,7 +310,7 @@ sendreport() {
             echo Could not send report as attachment, nail not installed >> $TMPDIR/report
           fi
         fi
-        cat $TMPDIR/report | mail $MAILARGS -s "$subject" "$SENDMAILTO"
+        cat $TMPDIR/report | eval mail $MAILARGS -s "'$subject'" "$SENDMAILTO"
     fi
 }
 




More information about the Logcheck-commits mailing list