Re: email.message_from_file & quoted printable

2021-12-25 Thread Skip Montanaro
> That sometimes you want the raw content as it was in the file? That if > you have that choice (decoded or raw) the default should be False, as it > does less? Yeah, thinking back later, the round-trip possibility seemed plausible. I'll stop overthinking this now... > That we my _first_

Re: email.message_from_file & quoted printable

2021-12-24 Thread Cameron Simpson
On 24Dec2021 09:31, Skip Montanaro wrote: >Cameron> Try decode=True. > >Skip> :dopeslap: Thanks. Never been all that consistent reading documentation. > >The more I think about it, the more I think maybe my lack of >documentation reading wasn't all that unreasonable. The content >transfer

Re: email.message_from_file & quoted printable

2021-12-24 Thread Skip Montanaro
Cameron> Try decode=True. Skip> :dopeslap: Thanks. Never been all that consistent reading documentation. The more I think about it, the more I think maybe my lack of documentation reading wasn't all that unreasonable. The content transfer encoding and charset are properties of the message as a

Re: email.message_from_file & quoted printable

2021-12-23 Thread Skip Montanaro
> > From the docs: > > get_payload(i=None, decode=False) ... Try decode=True. :dopeslap: Thanks. Never been all that consistent reading documentation. Skip -- https://mail.python.org/mailman/listinfo/python-list

Re: email.message_from_file & quoted printable

2021-12-23 Thread Cameron Simpson
On 23Dec2021 14:50, Skip Montanaro wrote: >I have a bunch of old email archives I'm messing around with, for example, >rendering them on-demand in HTML. Some of the files use quoted printable >content transfer encoding. Here's one (with a number of headers elided): [...] >This message is stored

email.message_from_file & quoted printable

2021-12-23 Thread Skip Montanaro
I have a bunch of old email archives I'm messing around with, for example, rendering them on-demand in HTML. Some of the files use quoted printable content transfer encoding. Here's one (with a number of headers elided): >From classicrendezvous-admin Mon Dec 4 15:29:22 2000 Message-ID: