Program: MailTest.EXE
Written by: rhp@netscape.com
Last Update: December 3, 1998
What is this?
Mostly, it's a test harness program for
libmime
development. MailTest uses Raptor as the HTML display engine and the new
"more modular" libmime to parse the RFC822 messages from disk. This
program lets you open one of your mailbox files from disk (in Berkeley
mail folder format), it will parse these into individual files in your
systems TEMP directory and then display subjects in the listbox.
How do I run the program?
Just do a "File -> Open Mailbox" and select
one of the mailboxes from your mail store. After a short pause, you will
see the messages in this mailbox displayed in the listbox at the top of
the application. After this display is complete, double click any of the
messages and it should render in the embedded Raptor window below. Note:
I've put a test mailbox file (Mailbox)
in the same directory as the test program.
What this program is:
Mostly, this is the first
step in getting libmime
into a modular form using Raptor for mail message display. Interesting
points for this application are:
-
libmime is isolated into a separate
DLL (MIME.DLL) on disk
-
The registration of the stream converter is
being done from the test application, though it is being done via an old
API call (NET_RegisterContentTypeConverter).
This interface is being discussed and will have to be implemented.
-
Like mentioned above, mostly a test harness
to fix issues with libmime.
What it isn't:
-
A solid version libmime...there are lots of
problems with how various items are displayed (attachments, signed messages,
etc...)
-
There is no custom protocol handler at work
here. I didn't spend my time getting a custom protocol handler working,
rather, I setup a MIME association between .eml files and message/rfc822
messages.
Why do I need to use this entire distribution
and not just use my compiled Raptor dist:
-
I needed to export the NET_RegisterContentTypeConverter
for now...this will change as an XP-COM interface for stream
converters becomes available. Also the MIME association between .eml files
and message/rfc822 stream converters.
Open Issues (and there are lots
:-):
-
Not all of the messages in the sample Mailbox
render properly...I know that.