Message251782
In my function makeMsg(), there is:
msg = email.mime.nonmultipart.MIMENonMultipart('text',
'plain', charset='utf-8')
msg['Subject'] = email.header.Header(subject, 'utf-8')
subject has no space after the thousands comma:
u'1,010 words - "The Blackmail Caucus, a.k.a. the Republican Party" By Paul Krugman'
But
msg['Subject'].__str__()
'1, 010 words - "The Blackmail Caucus,\n a.k.a. the Republican Party" By Paul Krugman'
has a space after the thousands comma and the email message later generated has a space after the thousands comma.
This is objectionable.
Note that the email library also inserts a newline after the comma that is followed by a space. Since I see no effect of this newline on the email generated, I have no objection to the newline. |
|
Date |
User |
Action |
Args |
2015-09-28 18:19:52 | SegundoBob | set | recipients:
+ SegundoBob, barry, r.david.murray |
2015-09-28 18:19:52 | SegundoBob | set | messageid: <1443464392.64.0.380133301442.issue25257@psf.upfronthosting.co.za> |
2015-09-28 18:19:52 | SegundoBob | link | issue25257 messages |
2015-09-28 18:19:52 | SegundoBob | create | |
|