Message317570
I've seen that in the documentation is quite clear with it. The question would be if the print should behave different, it is quite difficult to debug if not.
__setitem__(name, val)
Add a header to the message with field name name and value val. The field is appended to the end of the message’s existing fields.
Note that this does not overwrite or delete any existing header with the same name. If you want to ensure that the new header is the only one present in the message with field name name, delete the field first, e.g.:
del msg['subject']
msg['subject'] = 'Python roolz!' |
|
Date |
User |
Action |
Args |
2018-05-24 13:40:02 | Xavier Bonaventura | set | recipients:
+ Xavier Bonaventura |
2018-05-24 13:40:02 | Xavier Bonaventura | set | messageid: <1527169202.84.0.682650639539.issue33633@psf.upfronthosting.co.za> |
2018-05-24 13:40:02 | Xavier Bonaventura | link | issue33633 messages |
2018-05-24 13:40:02 | Xavier Bonaventura | create | |
|