Author |
|
boranin Newbie
Joined: 29 September 2007 Location: New Zealand
Online Status: Offline Posts: 32
|
Posted: 21 October 2008 at 9:26pm | IP Logged
|
|
|
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 |
|
|
Alex AfterLogic Support
Joined: 19 November 2003
Online Status: Offline Posts: 2206
|
Posted: 22 October 2008 at 7:57am | IP Logged
|
|
|
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 |
|
|
boranin Newbie
Joined: 29 September 2007 Location: New Zealand
Online Status: Offline Posts: 32
|
Posted: 23 October 2008 at 7:30am | IP Logged
|
|
|
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 |
|
|
Andrew AfterLogic Support
Joined: 28 April 2006 Location: United States
Online Status: Offline Posts: 1189
|
Posted: 23 October 2008 at 7:44am | IP Logged
|
|
|
The best and the fastest way is to use MailBee.Html Namespace.
Here you can find useful example.
Best regards,
Andrew
|
Back to Top |
|
|
boranin Newbie
Joined: 29 September 2007 Location: New Zealand
Online Status: Offline Posts: 32
|
Posted: 24 October 2008 at 11:37pm | IP Logged
|
|
|
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 |
|
|
Andrew AfterLogic Support
Joined: 28 April 2006 Location: United States
Online Status: Offline Posts: 1189
|
Posted: 27 October 2008 at 3:47am | IP Logged
|
|
|
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 |
|
|