Skip to content

Commit

Permalink
runltp: Fix sending with mutt
Browse files Browse the repository at this point in the history
mail address needs to be separated by '--'.
+ add better detection for mutt

Signed-off-by: Petr Vorel <pvorel@suse.cz>
  • Loading branch information
pevik committed Jul 23, 2018
1 parent 384a970 commit 685ee61
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions runltp
Expand Up @@ -944,9 +944,9 @@ main()
else
echo "Cannot Gunzip TAR File: ./$TAR_FILE_NAME"
fi
if [ -e /usr/bin/mutt ] ; then ## This is a better mail client than others
if which mutt >/dev/null 2>&1; then
echo "Starting mailing reports to: $EMAIL_TO, file: ./$TAR_FILE_NAME.gz"
mutt -a ./$TAR_FILE_NAME.gz -s "LTP Reports on $test_start_time" $EMAIL_TO < /dev/null
mutt -a ./$TAR_FILE_NAME.gz -s "LTP Reports on $test_start_time" -- $EMAIL_TO < /dev/null
if [ $? -eq 0 ]; then
echo "Reports Successfully mailed to: $EMAIL_TO"
else
Expand Down

0 comments on commit 685ee61

Please sign in to comment.