On 5/30/25 07:33, Thomas Ward via Mailman-Developers wrote:
Aha, you were correct! It's returning an `email.header.Header`
datatype, but it's also doing this for `msg.get('Subject', '(No
Subject)')` which looks like aberrant behavior since the same for
`msg['To']` returns a string!
I may hav
Hi Thomas
First off, I was wrong about the type of header values as returned by
any of the accessors. They're just str (or list of str in the case of
`.get_all`). I guess Header is a write-only feature (necessary if you
want to use non-ASCII in the address headers), because it isn't useful
for p
Aha, you were correct! It's returning an `email.header.Header`
datatype, but it's also doing this for `msg.get('Subject', '(No
Subject)')` which looks like aberrant behavior since the same for
`msg['To']` returns a string!
I may have to raise that as a bug with Python! (Either that or Python
Well, I noticed a second problem with my code.
On 2025-05-30 01:00, Stephen J. Turnbull wrote:
Thomas Ward via Mailman-Developers writes:
> (1) What is the datatype of `msg` in the archive_message class?
Ask not what is the data type of `msg`. Ask instead what is the data
type of `msg['Subj