Search The ForumSearch   RegisterRegister  LoginLogin

MailBee.NET IMAP

 AfterLogic Forum : MailBee.NET IMAP
Subject Topic: Convert Html tags ' Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
zbang.yaniv
Newbie
Newbie


Joined: 31 January 2012
Location: Israel
Online Status: Offline
Posts: 6
Posted: 17 April 2012 at 3:18am | IP Logged Quote zbang.yaniv

Hello,

'
Some emails arrive with html tags instead of chars, such as:
& #39; instead of '
& #64; instead of @
(space between & and # should be removed of course)

Is it possible to change the MailMessage so it yields the chars and not the tags?

Thanks
Back to Top View zbang.yaniv's Profile Search for other posts by zbang.yaniv
 
Igor
AfterLogic Support
AfterLogic Support


Joined: 24 June 2008
Location: United States
Online Status: Offline
Posts: 6044
Posted: 17 April 2012 at 4:11am | IP Logged Quote Igor

Are you speaking of the converting to plaintext message? For HTML message, it's absolutely OK for those characters to stay encoded, they will be displayed properly in web browser.

--
Regards,
Igor, AfterLogic Support
Back to Top View Igor's Profile Search for other posts by Igor
 
zbang.yaniv
Newbie
Newbie


Joined: 31 January 2012
Location: Israel
Online Status: Offline
Posts: 6
Posted: 17 April 2012 at 5:45am | IP Logged Quote zbang.yaniv

I show it both in browser where it's ok and in WPF, and there are rare emails that arrive with these tags.
I am using Mailbee verion 7's default settings of conversion to/from HTML

Thanks
Back to Top View zbang.yaniv's Profile Search for other posts by zbang.yaniv
 
Alex
AfterLogic Support
AfterLogic Support
Avatar

Joined: 19 November 2003
Online Status: Offline
Posts: 2206
Posted: 17 April 2012 at 7:51am | IP Logged Quote Alex

I just checked this. Both characters have been displayed fine in plain-text version.

Code:

MailMessage msg = new MailMessage();
msg.LoadMessage(@"C:\Temp\test.eml");
msg.Parser.HtmlToPlainMode = HtmlToPlainAutoConvert.IfHtml;
Console.WriteLine(msg.BodyPlainText);


I forced HMTL-to-plain text conversion so that MailBee generates plain-text even if the message already has plain-text version. Perhaps, in your case you have HTML message with plain-text part and that part was generated incorrectly by the composer of the message.

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

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