@philcowans

You're right, this is weird and I'm not entirely sure what's going on. I was able to get it to fail with some combinations, pass with others, and thought I had it figured out until I tried some other cases and those contradicted what I thought I'd established.

As to what's going on - I have a guess, but I'm not confident about it. I think it might be triggering only when an #rfc2047 -encoded segment of the header field value either exceeds the message's policy's line length limit, or in some way crosses over that boundary (such as having leading unencoded ASCII without a whitespace break that would allow the line to fold before the encoded segment).

If this is the case, it looks like a bug to me, too. If it's still happening with the most recent version of Python, I'd say it needs fixing. I haven't tried anything past 3.11.x right now.

Only showing up using the EmailMessage class vs Message class is explainable; there are slight differences, and one is for legacy code compatibility.

Weird.

#Python #email #EmailModule #EmailMessage #encoding #encoded

*That's a really good question, but I suspect that there are four different crucial words in that question that probably don't mean anything relevant to what's going on #style #encoded #human #knowledge

RE: https://bsky.app/profile/did:plc:oqu7zfm4asgxyv6i5aiswtzv/post/3lzl34a5oz226
#encoded messages can come in many forms
"PERSISTENCE OF THE ENCODED DRIFT". Abstract digital painting by A.G. (c) 2025. All Rights Reserved. #historiotheque #historiophany #artoperations #concreterealism #seasonsoftheheart #summeroftheheart #summerofjoyfulbeing #persistence #encoded #drift

multiline

#encoded

Here are the simple reasons:
#Crypto literally means that each piece has been #encoded. You don't solve 1 and magically can solve the rest of the coins. So it would take a #lifetime to copy 1 dollar and the dollar of 10 years from now may take 100 years to #decrypt. I suppose you can #encrypt the #money down to the cent so it cent would take 100 #years to decrypt. Vs. If you buy a bag of #holograms you can copy a good million #bucks worth of $100 #bills. So what's the real reason for not crypto?
#Synthetic #biologists at Rice University are embarking on a three-year project to create “#genetically #encoded #antibiotics,” strands of #RNA that bacteria will readily copy and share that will selectively kill only #disease-causing, #pathogenic #bacteria.
#Biology #Microbiology #sflorg
https://www.sflorg.com/2023/03/bio03132301.html
Rice labs seek RNA programming for ‘smart’ antibiotics

Kleberg Foundation funds effort to produce targeted, tailored antibiotics

🔗 How to store your app's entire state in the URL
by Scott Antipa
@ScottyAntipa
#URL #graph #state #store #encoded

https://www.scottantipa.com/store-app-state-in-urls