Search The ForumSearch   RegisterRegister  LoginLogin

MailBee Objects

 AfterLogic Forum : MailBee Objects
Subject Topic: DecodeMstnef / inline images Winmail.dat Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
iconbill
Valued Community Member
Valued Community Member


Joined: 07 March 2007
Location: Netherlands
Online Status: Offline
Posts: 76
Posted: 28 March 2008 at 7:55am | IP Logged Quote iconbill

Hello,

i'm using the new method 'DecodeMstnef'. This is indeed extracting the attachments from MS-TNEF files (like winmail.dat).

But inline images are displayed as 'Untitled Attachment' without extension. But the real problem is, this images are not used as inline images.

Could you tell me, how to display this images inline and how do I known the attachtment extension? Because in this case the case the attachtments are useless.

ps My script is working with inline images for normal messages.

Kind regards,

Marco
Back to Top View iconbill's Profile Search for other posts by iconbill
 
iconbill
Valued Community Member
Valued Community Member


Joined: 07 March 2007
Location: Netherlands
Online Status: Offline
Posts: 76
Posted: 28 March 2008 at 8:25am | IP Logged Quote iconbill

I found a tool WinMail Decoder , and this tool is also extracting 2 'Untitled Attachment' files, without extension (and one rtf file). So I think this means this strange filename is really inside the winmail.dat

But the file extension, file type...still don't understand at this point.
Back to Top View iconbill's Profile Search for other posts by iconbill
 
Alex
AfterLogic Support
AfterLogic Support
Avatar

Joined: 19 November 2003
Online Status: Offline
Posts: 2206
Posted: 28 March 2008 at 8:39am | IP Logged Quote Alex

Do you know which filename should be there? Maybe, Office Outlook shows the correct name? Could you also send the e-mail in question to us? You can save it as .EML and attach it to your reply at our Request Support Form

Regards,
Alex
Back to Top View Alex's Profile Search for other posts by Alex
 
Andrew
AfterLogic Support
AfterLogic Support


Joined: 28 April 2006
Location: United States
Online Status: Offline
Posts: 1189
Posted: 31 March 2008 at 6:57am | IP Logged Quote Andrew

Thank you for the test message.

We checked it in MS Outlook, it displays images correctly. However, these images are in some kind of proprietary binary format. We saved the attachments to disk and tried to view them via several image viewers, but none of the viewers was able to display them.

Even if the images were in a standard format, your application would be unable to display them as in-line images because they're referred in an RTF body contained in the winmail.dat. This body is not an attachment, so MailBee.NET Objects doesn't allow extracting it. Moreover, if you were able to extract the RTF body and the images were in a readable format, you'd need an additional component which is able to display RTF with such "inline" images.

Also, we tried this in another e-mail client (The Bat v4) which supports extracting attachments from TNEF (winmail.dat), it doesn't extract those images at all.

Quote:
ps My script is working with inline images for normal messages.


"Normal" messages have HTML body and in-line images in the standard format as attachments with special headers. This is open and well documented standard, so it's fully supported.

But the message you provided contains RTF body with non-standard images in an proprietary container. This is proprietary poor documented format.

So, you should just ignore these attachments.

Best regards,
Andrew
Back to Top View Andrew's Profile Search for other posts by Andrew
 
iconbill
Valued Community Member
Valued Community Member


Joined: 07 March 2007
Location: Netherlands
Online Status: Offline
Posts: 76
Posted: 31 March 2008 at 11:41pm | IP Logged Quote iconbill

Thank you very much Andrew.

Even Hotmail can not display/retrieve there own TNEF files.

After a long search I found one person who was capable to retrieve the inline image on a very dirty way. He is searching in binairy modes in the file to a BMP-header and is stopping at the end-header ór the end of the file. (www.ericphelps.com/tnef)

But my final conclusion: I stop my own research, it's to complicated and the TNEF was only created to work with Outlook.

Thank you again the detailed research/message.

Kind regards,
Marco

PS How many message I have to post for become a 2 star rating?

Back to Top View iconbill's Profile Search for other posts by iconbill
 
Andrew
AfterLogic Support
AfterLogic Support


Joined: 28 April 2006
Location: United States
Online Status: Offline
Posts: 1189
Posted: 01 April 2008 at 3:32am | IP Logged Quote Andrew

40 posts are required. You're in the homestretch

Best regards,
Andrew
Back to Top View Andrew's Profile Search for other posts by Andrew
 

If you wish to post a reply to this topic you must first login
If you are not already registered you must first register

  Post ReplyPost New Topic
Printable version Printable version

Forum Jump

Powered by Web Wiz Forums version 7.9
Copyright ©2001-2004 Web Wiz Guide