file with multipart mime

0 views
Skip to first unread message

miccloud

unread,
Oct 8, 2010, 7:49:21 PM10/8/10
to Mimeparse-dev
Hi,
I have a file containing a multipart mime message.
In this file there is a document xml and a tiff image.
I would to extract the image from this file.
How I can do that with this library in Python?

Thanks a lot.

Joe Gregorio

unread,
Oct 11, 2010, 10:52:54 AM10/11/10
to mimepa...@googlegroups.com

You can't, as this library is only for parsing and comparing mimetypes
as they appear in some headers. The library you want to use is built
into the standard library:

http://docs.python.org/library/mimetools.html

-joe

>
> Thanks a lot.
>
> --
> You received this message because you are subscribed to the Google Groups "Mimeparse-dev" group.
> To post to this group, send email to mimepa...@googlegroups.com.
> To unsubscribe from this group, send email to mimeparse-de...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/mimeparse-dev?hl=en.
>
>

--
Joe Gregorio        http://bitworking.org

michele pierri

unread,
Oct 12, 2010, 11:23:13 AM10/12/10
to mimepa...@googlegroups.com
Thanks.

2010/10/11 Joe Gregorio <j...@bitworking.org>
Reply all
Reply to author
Forward
0 new messages