TNEF Attachment Decoder v0.70
http://www.wib-software.de/squirrel/ 

bernd@wib-software.de (Bernd Wiegmann) since Version 0.3
gnorbury@bondcar.com

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.

Releasenote
-----------
This is a complete rewrite of the tnef decoding engine. Additional eMail attributes
are now displayed and embedded RTF attachments are also decoded.
RTF Files smaller than 250 Bytes are not shown. The small files I found in the
attachments were all empty. In most cases the mail itself is also included as a
RTF File and if the mail itself contains no text, the RTF File is empty as well.
Before you mail me about empty files please check that there should be something
else.
I tried to hide the attachment with the warning message but this provented other
attachments from beeing displayed at all. Now all attachments are shown with the
exception of the small rtf files.

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. 

I don't have an embedded uncompressed RTF attachment and I haven't been able to test
it and there may be still a bug in this part of the code.

To Do
-----
Better integration in SM.
Reorganize the class structure to eliminate the warning attachments.

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
v0.55 2003-09-11 : WIB: The plugin decodes a lot more attributes (beta release)
v0.6  2003-10-08 : WIB: Compressed RTF decoding implemented.
v0.7  2003-10-10 : WIB: Bugfixes for nested attachments.