SendQAEmail.py: cleanup email formatting
PATCH 1/1 SendQAEmail.py: cleanup email formatting
"-e" option is not required and gets inserted into email text if present.
--- lib/python2.7/site-packages/autobuilder/buildsteps/SendQAEmail.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
lib/python2.7/site-packages/autobuilder/buildsteps/SendQAEmail.py +1 -1
@@ -95,7 +95,7 @@ Please begin QA on this build as soon as possible.''' % (rel_name, self.getPrope email_header += "Subject: " + mailsubject + "\n" - mailcmd = 'echo -e "' + email_header + "\n" + email_base + '\n' + email_body + '\n' + mailsig + ' " | sendmail -t' + mailcmd = 'echo "' + email_header + "\n" + email_base + '\n' + email_body + '\n' + mailsig + ' " | sendmail -t' self.command = mailcmd else:
Signature · 1 line
2.5.5
Joshua Lock
AppliedQuoted 2 lines · Bill Randle
"-e" option is not required and gets inserted into email text if present.
Pushed to master, thanks.
Joshua
Quoted 27 lines
Signed-off-by Bill Randle <[email protected]>---
lib/python2.7/site-packages/autobuilder/buildsteps/SendQAEmail.py | 2 +-1 file changed, 1 insertion(+), 1 deletion(-)(quoted diff) +0
-0
packages/autobuilder/buildsteps/SendQAEmail.pyb/lib/python2.7/site-packages/autobuilder/buildsteps/SendQAEmail.py
index 3691cc6..1bb2893 100644
--- a/lib/python2.7/site-packages/autobuilder/buildsteps/SendQAEmail.py
+++ b/lib/python2.7/site-packages/autobuilder/buildsteps/SendQAEmail.py(quoted diff) +0
-0@@ -95,7 +95,7 @@ Please begin QA on this build as soon aspossible.''' % (
rel_name, self.getPrope
email_header += "Subject: " + mailsubject + "\n"
- mailcmd = 'echo -e "' +email_header+ "\n" +email_base
+ '\n' +email_body+ '\n' + mailsig + ' " | sendmail -t' + mailcmd = 'echo "' +email_header+ "\n" +email_base+ '\n' +email_body+ '\n' + mailsig + ' " | sendmail -t'
self.command = mailcmd
else: