Message337988
I think this is the expected behavior, see https://docs.python.org/3.4/library/email.message.html#email.message.Message.__getitem__ for details:
> Note that if the named field appears more than once in the message’s headers, exactly which of those field values will be returned is undefined. Use the get_all() method to get the values of all the extant named headers.
This has been already discussed elsewhere, it may not be the best API but for compatibility reasons, we cannot change it anyway. |
|
Date |
User |
Action |
Args |
2019-03-15 13:30:38 | remi.lapeyre | set | recipients:
+ remi.lapeyre, barry, r.david.murray, Fotoblysk |
2019-03-15 13:30:38 | remi.lapeyre | set | messageid: <1552656638.2.0.758325157067.issue36303@roundup.psfhosted.org> |
2019-03-15 13:30:38 | remi.lapeyre | link | issue36303 messages |
2019-03-15 13:30:38 | remi.lapeyre | create | |
|