Reconfigure to allow nodes to send email to mailing lists 78/52678/1
authorThanh Ha <thanh.ha@linuxfoundation.org>
Thu, 2 Mar 2017 22:05:32 +0000 (17:05 -0500)
committerThanh Ha <thanh.ha@linuxfoundation.org>
Thu, 2 Mar 2017 22:05:34 +0000 (17:05 -0500)
Seems like passing the from field via -r switch works rather than using
the "from=" header configuration.

Change-Id: I987f9cbb85b89ee9fca797308f705aa2acc59d29
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
jjb/autorelease/include-raw-autorelease-notify-build-failure.sh

index b113636818c283e84ce03f942719b015a0784603..6e903b68815a7b6d81f4b5b256b15d0dda6d7c73 100644 (file)
@@ -78,7 +78,7 @@ if [ ! -z "${ARTIFACTID}" ] && [[ "${BUILD_STATUS}" != "SUCCESS" ]]; then
     fi
 
     echo "${BODY}" | mail -a /tmp/error_msg \
-        -S "from=Jenkins <jenkins-dontreply@opendaylight.org>" \
+        -r "Jenkins <jenkins-dontreply@opendaylight.org>" \
         -s "${SUBJECT}" "${RELEASE_EMAIL}"
 fi