]> Frank Brehm's Git Trees - profitbricks/jenkins-build-scripts.git/commitdiff
display mail headers. Closes: DEVINF-255
authorHolger Levsen <holger@layer-acht.org>
Mon, 26 Nov 2012 16:25:21 +0000 (17:25 +0100)
committerHolger Levsen <holger@layer-acht.org>
Mon, 26 Nov 2012 16:25:21 +0000 (17:25 +0100)
liveboot_testdeploy.sh

index 5b7e97151086d5627a8c35661da3245f935fc3d3..099410bcc3557ed0e28f5dd09e5def3010450e32 100755 (executable)
@@ -120,9 +120,22 @@ fi
 echo
 
 #
-# send announce mail
+# output announcement mail headers
 #
+while read line ; do
+       if [ "$line" != "" ] ; then
+               echo $line
+       else
+               break
+       fi
+done < $MAIL
+echo
 mailtextbody < $MAIL ; echo
+echo "Attachments not shown here."
+echo
+#
+# send announcement mail
+#
 cat $MAIL | /usr/sbin/sendmail -t
 echo
 echo "Ok, announcement mail sent."