Re: fixing the current email module

Barry Warsaw <[email protected]> Thu, 8 Oct 2009 15:54:10 -0400
Newsgroups gmane.comp.python.mime.devel
Message-ID <[email protected]>
On Oct 8, 2009, at 3:33 AM, Glenn Linderman wrote:

> Not sure that non-text MIME parts need to support being returned as  
> strings.

I don't think they do.  But e.g. an image/* MIME part should support  
returning the decoded image data.

> So there must be APIs that support obtaining text and (same or  
> different) APIs that support obtaining bytes for a given MIME part.   
> However, I think it is proper that a MIME part that is not flagged  
> as text/* might produce an error if asked for as text.

+1

-Barry
PGP.sig (application/pgp-signature, 832 B) - not displayed