--- On Mon, 8/22/11, David F. Skoll <[email protected]> wrote: > "Rolf E. Sonneveld" <[email protected]> wrote: > > > Where does MIMEDefang (or MIME::Entity) gets this content-type > > multipart/mixed from? > > MIMEDefang automatically converts a single-part into a multi-part > entity before processing it. That's so things like action_add_part, > etc. work easily. MIMEDefang converts the message back to a > single-part message at the end if such conversion is possible without > losing information. > > If you really need the original MIME part of the top (outer) header, you'll > need to open the file ./HEADERS for reading and parse out the Content-Type: > header yourself, unfortunately.
However, since MD must first parse the message to determine whether it is already a multipart/* type, wouldn't it make sense to save that information into a global variable available during body processing? _______________________________________________ NOTE: If there is a disclaimer or other legal boilerplate in the above message, it is NULL AND VOID. You may ignore it. Visit http://www.mimedefang.org and http://www.roaringpenguin.com MIMEDefang mailing list [email protected] http://lists.roaringpenguin.com/mailman/listinfo/mimedefang

