Skip to contentSkip to conversation

SendQAEmail.py: cleanup email formatting

PATCH Applied Bill Randle 2 participants 2 messages Aug 19, 2016 – Aug 22, 2016

lore
Share & tools
lore
#0 lore raw

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
index 3691cc6..1bb2893 100644
@@ -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
Applied
#1 lore raw
Quoted 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

---
 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.py b/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 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: