Stephen J. Turnbull wrote:
str(message['Subject'])
Yes for unstructured headers like Subject. For structured headers...
hmm.
Well, suppose we get really radical here. *People* see email as
(rich-)text. So ... message['Subject'] returns an object, partly to
be consistent with
Barry Warsaw writes:
On Apr 11, 2009, at 8:39 AM, Chris Withers wrote:
Barry Warsaw wrote:
message['Subject']
The raw bytes or the decoded unicode?
A header object.
Yep. You got there before I did. :)
Okay, so you've picked one. Now how do you spell the other way?
On Tue, 14 Apr 2009 03:15:20 am Stephen J. Turnbull wrote:
*People* see email as (rich-)text.
We do?
It's not clear what you actually mean by (rich-)text. In the context
of email, I understand it to mean HTML in the body, web-bugs, security
exploits, 36pt hot-pink bold text on a lime-green