TNEF Attachment Decoder v0.5
gnorbury@bondcar.com
bernd@wib-software.de (Bernd Wiegmann) since Version 0.3

Description
-----------
A squirrelmail plugin to open and extract embedded attachments from ms-tnef encoded
files such as "winmail.dat".  (As generated by Microsoft Outlook and friends)

With this plugin enabled, an extra "view" option will be added to the available
hyperlinks whenever a file of mime-type 'application/ms-tnef' is received. After
selecting this link, you will be taken to a page displaying the contents of the
file, and given the opportunity to download one or more of the attachments.

Known Bugs
----------
Currently the plugin has only been extensively tested with IE 6.0, and somewhat
less with Solaris Netscape Communicator 4.76.  Since differences do exist between
browsers, it is more than likely there are still some glitches in the "download" code. 

The tnef decoder recursively looks for text and attachments contained within the MAPI
formatted archive.  A basic attempts is made to display body text contained within
each message, however this capability has not been extensivly exercised.

To Do
-----
Finish the code to allow attachments to be listed at the bottom of the email body
instead of needing to hit "view".  This is slightly trickier than I had anticipated,
and may require some restructuring to avoid duplication of code.

Change History
--------------
v0.1 2002-06-01 : Initial version
v0.2 2002-08-26 : Fixed bug with embedded messages.  Now decodes recursively!
v0.3 2003-06-09 : WIB: Adapted plugin for SquirrelMail 1.4
v0.4 2003-06-12 : WIB: Now the plugin can be used with PHP's register_globals=off
v0.5 2003-07-14 : WIB: Removed broken code and fixed translations