Author remi.lapeyre
Recipients Fotoblysk, barry, r.david.murray, remi.lapeyre
Date 2019-03-15.13:30:38
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1552656638.2.0.758325157067.issue36303@roundup.psfhosted.org>
In-reply-to
Content
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.
History
Date User Action Args
2019-03-15 13:30:38remi.lapeyresetrecipients: + remi.lapeyre, barry, r.david.murray, Fotoblysk
2019-03-15 13:30:38remi.lapeyresetmessageid: <1552656638.2.0.758325157067.issue36303@roundup.psfhosted.org>
2019-03-15 13:30:38remi.lapeyrelinkissue36303 messages
2019-03-15 13:30:38remi.lapeyrecreate