Search The ForumSearch   RegisterRegister  LoginLogin

MailBee.NET Objects

 AfterLogic Forum : MailBee.NET Objects
Subject Topic: Inconsistent MessageID Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
boranin
Newbie
Newbie


Joined: 29 September 2007
Location: New Zealand
Online Status: Offline
Posts: 32
Posted: 21 October 2008 at 9:26pm | IP Logged Quote boranin

Envelope Object returns MessageID as "<SomeMessageIDString>", while MailMessage object returns the same thing as "SomeMessageIDString". Is this by design, and if yes, why?
Regards,
Alex
Back to Top View boranin's Profile Search for other posts by boranin
 
Alex
AfterLogic Support
AfterLogic Support
Avatar

Joined: 19 November 2003
Online Status: Offline
Posts: 2206
Posted: 22 October 2008 at 7:57am | IP Logged Quote Alex

It behaves so for backward compatibility reasons. Envelope.MessageID is more correct but it's not possible to fix this for MailMessage.MessageID because there is a number of MailBee-based applications which identify messages by MailMessage.MessageID and changing this property value could ruin their relations between database fields which use MailMessage.MessageID as identifier.

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


Joined: 29 September 2007
Location: New Zealand
Online Status: Offline
Posts: 32
Posted: 23 October 2008 at 7:30am | IP Logged Quote boranin

Thanks for clarification.
Another question:
What is the best (fastest) option for finding all elements (images and similar) with external links and replacing them with warning type links (eg. www.google.com/image.jpg to be replaced with www.MyDomain.com/BlankImage.jpg)?
Is searching with REGEX through BodyHtmlText the best option (and if it is, would you have good REGEX string for that), or you have method to do this easily?
Regards,
Alex
Back to Top View boranin's Profile Search for other posts by boranin
 
Andrew
AfterLogic Support
AfterLogic Support


Joined: 28 April 2006
Location: United States
Online Status: Offline
Posts: 1189
Posted: 23 October 2008 at 7:44am | IP Logged Quote Andrew

The best and the fastest way is to use MailBee.Html Namespace.

Here you can find useful example.

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


Joined: 29 September 2007
Location: New Zealand
Online Status: Offline
Posts: 32
Posted: 24 October 2008 at 11:37pm | IP Logged Quote boranin

I do not think your example will work (at least VB version) as you send elem as ByVal to your ProcessDelegate. At least it does not work for me in my attempt to clear links from images.
Could you give complete solution for cleaning external links from email or MailBee does not have that feature and cannot do that easily? This is one of the most common requiremens in today's email world and I beleive MailBee objects should have this available out of the box.
Regards,
Alex
Back to Top View boranin's Profile Search for other posts by boranin
 
Andrew
AfterLogic Support
AfterLogic Support


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

Quote:
I do not think your example will work (at least VB version) as you send elem as ByVal to your ProcessDelegate.


That works due to using AddressOf operator:

Code:
Dim del As ProcessElementDelegate = AddressOf ProcessDelegate


Let's continue this discussion in this topic. We're investigating why it doesn't work for the HTML you provided there.

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