Re: [Email-SIG] API for Header objects

2009-04-17 Thread Stephen J. Turnbull
Tony Nelson writes: This example seems tortured and contrived. Not at all. I currently use grep, not the email package, but in fact I extract several headers for use in mailing list moderation. It's getting to the point where my gradually accreting shell script doesn't cut it (more because

Re: [Email-SIG] API for Header objects [was: Dropping bytes support in json]

2009-04-17 Thread Stephen J. Turnbull
R. David Murray writes: Note that while I want to be able to do str(someHeader) to get a string representation of a header body, I'm not so enamored of being able to do message['From'] = 'John Smith j...@foo.com' and have it get turned into a Header or AddressHeader object.

Re: [Email-SIG] API for Header objects [was: Dropping bytes support in json]

2009-04-17 Thread R. David Murray
On Fri, 17 Apr 2009 at 19:20, Stephen J. Turnbull wrote: R. David Murray writes: Note that while I want to be able to do str(someHeader) to get a string representation of a header body, I'm not so enamored of being able to do message['From'] = 'John Smith j...@foo.com' and have it

Re: [Email-SIG] API for Header objects [was: Dropping bytes support in json]

2009-04-17 Thread Stephen J. Turnbull
Tony Nelson writes: No. The useful data for an address field is *properly* a list of pairs of friendly name, address -- you should read RFC 5322 section 3.4. The fact that you think I didn't suggests there's really no point in continuing to talk to you. But I'll give it another try. The

Re: [Email-SIG] API for Header objects [was: Dropping bytes support in json]

2009-04-17 Thread Stephen J. Turnbull
R. David Murray writes: put Header objects into it. I don't think the overhead of having to do message['Subject'] = Header('subject string') Hm. Should a Header know which header it is? Ie, should that be message['Subject'] = Header('subject', 'subject string') ? (I

Re: [Email-SIG] API for Header objects [was: Dropping bytes support in json]

2009-04-17 Thread R. David Murray
On Sat, 18 Apr 2009 at 00:13, Stephen J. Turnbull wrote: R. David Murray writes: put Header objects into it. I don't think the overhead of having to do message['Subject'] = Header('subject string') Hm. Should a Header know which header it is? Ie, should that be

Re: [Email-SIG] API for Header objects [was: Dropping bytes support in json]

2009-04-17 Thread Barry Warsaw
Folks, just a quick followup explanation on why I've been radio silent on this sig. Taxes, work, and personal stuff just caught up to me this week. I'm hoping to find some time this weekend to review and respond to the blizzard of messages on this thread. -Barry PGP.sig Description:

Re: [Email-SIG] API for Header objects [was: Dropping bytes support in json]

2009-04-17 Thread Tony Nelson
At 00:13 +0900 04/18/2009, Stephen J. Turnbull wrote: R. David Murray writes: put Header objects into it. I don't think the overhead of having to do message['Subject'] = Header('subject string') Hm. Should a Header know which header it is? Ie, should that be

Re: [Email-SIG] API for Header objects [was: Dropping bytes support in json]

2009-04-17 Thread R. David Murray
On Fri, 17 Apr 2009 at 13:26, Tony Nelson wrote: At 00:13 +0900 04/18/2009, Stephen J. Turnbull wrote: R. David Murray writes: put Header objects into it. I don't think the overhead of having to do message['Subject'] = Header('subject string') Hm. Should a Header know which header

Re: [Email-SIG] API for Header objects

2009-04-17 Thread Tony Nelson
At 19:04 +0900 04/17/2009, Stephen J. Turnbull wrote: Tony Nelson writes: This example seems tortured and contrived. Not at all. I currently use grep, not the email package, but in fact I extract several headers for use in mailing list moderation. It's getting to the point where my gradually