Dnia  1.01.2022 o godz. 11:40:37 Frank Hwa pisze:
> 
> For a multipart message, is text/plain part always in the first
> location?
> I just want to extract the plain text body of a message. I use the
> code below (python), but was not very sure.

I have a perl script that extracts all text/plain parts from multipart
messages, up to 5 levels nesting of multipart messages one inside another
(that level is configurable via a parameter in the script).

If you want to look at it, it's here: http://rafa.eu.org/media/textconv.pl
-- 
Regards,
   Jaroslaw Rafa
   r...@rafa.eu.org
--
"In a million years, when kids go to school, they're gonna know: once there
was a Hushpuppy, and she lived with her daddy in the Bathtub."

Reply via email to