The lib email parse problem...

John Machin sjmachin at lexicon.net
Wed Aug 30 02:24:04 EDT 2006


Tim Roberts wrote:
> "????" <guotie.9 at gmail.com> wrote:
>
> >i know how to use email module lib.
> >
> >the question is about how to handle the rfc 1521 mime
> >mulitpart/alternitave part .
> >
> >i know emai can handle mulitpart , but the subpart  alternative is
> >special .
>
> No, it's not.  A multipart/alternative section is constructed exactly the
> same as any other multipart section.  It just so happens that it will have
> exactly two subsections, one text/plain and one text/html.

I was under the impression that it was a little more general than that
... see e.g. http://www.freesoft.org/CIE/RFC/1521/18.htm

My guess is that the OP meant special in the sense that the reader
needs to choose one subpart, instead of processing all subparts.

Cheers,
John




> -- 
> - Tim Roberts, timr at probo.com
>   Providenza & Boekelheide, Inc.




More information about the Python-list mailing list