On November 11, 2000 at 13:20, anthonyw wrote:
For the msg*.html files that are derived from multipart messages:
1) Save the boundary markers of the message part
This is really not needed since the script can recreate new
2) Retain the Mime headers of the message parts - those which are not
displayed inline - inside of some X- comment.
The only header of potential interest is the Content-Type header.
Other headers can be recreated by the script. An external file's
content-type can be implied from the filename extension or by the use
of file(1) and /etc/magic, or similiar mechanism.
Note, any back conversion will never be perfect, so it is best to
minimize the amount of work to whatever can give a passable solution.
I'd prefer to not over-pollute a page with a bunch of comment
declarations since it increases the byte size of the page with
questionable benefit. Also, the comment declaration approach will not
work well with MHTML messages since some parts may be decoded but
referenced within the main HTML part.
Plus, since there appears to be a desire to back convert messages
from existing archives, a solution must exist that does not rely
on comment declarations that do not exist.
BTW, the list of external files is given at the top of each message
page so the bodies URLs can be scanned to see which ones match
against the list. One could probably just have all message
denoted as multipart in the main content-type comment declaration
converted into MHTML messages. All basic content-types should be
translatable back to the something close to the original message
(wrt to the message body).