I am not sure if anyone still uses this list :) but I have a
"what if" idea for dealing with MIME content messages when a
list utilizes fronters or footers. I know we want to convince
users to stick to plain text, but as someone mentioned on the
-users list, MIME will not be going away, and we need to deal
with it. Does anyone think it is worth the effort during the
body/header parsing to add this kind of logic?
If header_content_type m/multipart/i
boundary = split('=', whatever goes here)
fi
inserting a fronter would become
if boundary
--$boundary
Content-Type: text/plain
<blank line>
fi
$fronter
Inserting/appending a footer would become
if boundary
$_ =~ s/--$boundary--/--$boundary/
Content-Type: text/plain
<blank line>
fi
$footer
if boundary
--$boundary--
fi
In other words, to quote from someone on the mailman list,
if a message has MIME parts and the header/footer is going
to be added, the message should be transformed into a
mulitpart/mixed with the header and footer added as text/plain
parts.
Is my logic above over simplified?
Dan Liston
Follow-Ups:
|
|