A Microsoft Outlook email forum. Outlook Banter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Outlook and VBA
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

href tags does not result in the full url with Redemption



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old November 16th 09, 12:15 PM posted to microsoft.public.outlook.program_vba
DPM
external usenet poster
 
Posts: 21
Default href tags does not result in the full url with Redemption

Hi,

I am using a program which reads emails from a selected folder of MS
Outlook(2003 SP3).
I have noticed the following,
- A mail has the base href tag defined in the header of the mail html
- The mail body has a relative tag with a href
Once the MailItem.HTMLBody is read the relative tag(a href) is replaced
with the full url.

eg. The mail has the following html as the source
html
head
base href="http://sample.com/aa/bb/cc"/base
/head
body
a href="dd"Text/a
/body
/html

The MailItem.HTMLBody returns the following
html
head
base href="http://sample.com/aa/bb/cc"/base
/head
body
a href="http://sample.com/aa/bb/dd"Text/a
/body
/html

But when Redemption.SafeMailItem is used its html results as per original
mail above(1st html) without the full url for the href tags.
Is there a facility in Redemption to read the html with the full urls as per
MS Outlook mail item?
Redemption ver. in use, 4.5.0.812.

Please advice.



Ads
  #2  
Old November 16th 09, 04:28 PM posted to microsoft.public.outlook.program_vba
Dmitry Streblechenko
external usenet poster
 
Posts: 2,116
Default href tags does not result in the full url with Redemption

AFAIK Outlook loads the HTML blob into an HTMLDocument object, which parses
the HTML.
Redemption simply extracts the HTML body as-is.

--
Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
-
"DPM" wrote in message
...
Hi,

I am using a program which reads emails from a selected folder of MS
Outlook(2003 SP3).
I have noticed the following,
- A mail has the base href tag defined in the header of the mail html
- The mail body has a relative tag with a href
Once the MailItem.HTMLBody is read the relative tag(a href) is replaced
with the full url.

eg. The mail has the following html as the source
html
head
base href="http://sample.com/aa/bb/cc"/base
/head
body
a href="dd"Text/a
/body
/html

The MailItem.HTMLBody returns the following
html
head
base href="http://sample.com/aa/bb/cc"/base
/head
body
a href="http://sample.com/aa/bb/dd"Text/a
/body
/html

But when Redemption.SafeMailItem is used its html results as per original
mail above(1st html) without the full url for the href tags.
Is there a facility in Redemption to read the html with the full urls as
per MS Outlook mail item?
Redemption ver. in use, 4.5.0.812.

Please advice.





  #3  
Old November 17th 09, 05:16 AM posted to microsoft.public.outlook.program_vba
DPM
external usenet poster
 
Posts: 21
Default href tags does not result in the full url with Redemption

Dmitry,

Thanks.
Could you give some hints on how to use the HTMLDocument object so that it
is possible to generate the full urls.


"Dmitry Streblechenko" wrote in message
...
AFAIK Outlook loads the HTML blob into an HTMLDocument object, which
parses the HTML.
Redemption simply extracts the HTML body as-is.

--
Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
-
"DPM" wrote in message
...
Hi,

I am using a program which reads emails from a selected folder of MS
Outlook(2003 SP3).
I have noticed the following,
- A mail has the base href tag defined in the header of the mail html
- The mail body has a relative tag with a href
Once the MailItem.HTMLBody is read the relative tag(a href) is replaced
with the full url.

eg. The mail has the following html as the source
html
head
base href="http://sample.com/aa/bb/cc"/base
/head
body
a href="dd"Text/a
/body
/html

The MailItem.HTMLBody returns the following
html
head
base href="http://sample.com/aa/bb/cc"/base
/head
body
a href="http://sample.com/aa/bb/dd"Text/a
/body
/html

But when Redemption.SafeMailItem is used its html results as per original
mail above(1st html) without the full url for the href tags.
Is there a facility in Redemption to read the html with the full urls as
per MS Outlook mail item?
Redemption ver. in use, 4.5.0.812.

Please advice.







  #4  
Old November 17th 09, 06:23 PM posted to microsoft.public.outlook.program_vba
Dmitry Streblechenko
external usenet poster
 
Posts: 2,116
Default href tags does not result in the full url with Redemption

You'd think that would be easy... Essentially you need to create an instance
of the HTMLDocument object, QI it for IMarkupServices, then call
IMarkupServices::ParseString. That method fails a lot on real-world HTML, so
you'd then need to QI for IPersistStreamInit and then call
IPersistStreamInit::Load, which is asynchronous, so you'd need to wait until
HTMLDocument.readyState property becomes "complete" or "interactive".

--
Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
-
"DPM" wrote in message
...
Dmitry,

Thanks.
Could you give some hints on how to use the HTMLDocument object so that it
is possible to generate the full urls.


"Dmitry Streblechenko" wrote in message
...
AFAIK Outlook loads the HTML blob into an HTMLDocument object, which
parses the HTML.
Redemption simply extracts the HTML body as-is.

--
Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
-
"DPM" wrote in message
...
Hi,

I am using a program which reads emails from a selected folder of MS
Outlook(2003 SP3).
I have noticed the following,
- A mail has the base href tag defined in the header of the mail html
- The mail body has a relative tag with a href
Once the MailItem.HTMLBody is read the relative tag(a href) is
replaced with the full url.

eg. The mail has the following html as the source
html
head
base href="http://sample.com/aa/bb/cc"/base
/head
body
a href="dd"Text/a
/body
/html

The MailItem.HTMLBody returns the following
html
head
base href="http://sample.com/aa/bb/cc"/base
/head
body
a href="http://sample.com/aa/bb/dd"Text/a
/body
/html

But when Redemption.SafeMailItem is used its html results as per
original mail above(1st html) without the full url for the href tags.
Is there a facility in Redemption to read the html with the full urls as
per MS Outlook mail item?
Redemption ver. in use, 4.5.0.812.

Please advice.









  #5  
Old November 18th 09, 05:35 AM posted to microsoft.public.outlook.program_vba
DPM
external usenet poster
 
Posts: 21
Default href tags does not result in the full url with Redemption

Thanks Dmitry.

"Dmitry Streblechenko" wrote in message
...
You'd think that would be easy... Essentially you need to create an
instance of the HTMLDocument object, QI it for IMarkupServices, then call
IMarkupServices::ParseString. That method fails a lot on real-world HTML,
so you'd then need to QI for IPersistStreamInit and then call
IPersistStreamInit::Load, which is asynchronous, so you'd need to wait
until HTMLDocument.readyState property becomes "complete" or
"interactive".

--
Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
-
"DPM" wrote in message
...
Dmitry,

Thanks.
Could you give some hints on how to use the HTMLDocument object so that
it is possible to generate the full urls.


"Dmitry Streblechenko" wrote in message
...
AFAIK Outlook loads the HTML blob into an HTMLDocument object, which
parses the HTML.
Redemption simply extracts the HTML body as-is.

--
Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
-
"DPM" wrote in message
...
Hi,

I am using a program which reads emails from a selected folder of MS
Outlook(2003 SP3).
I have noticed the following,
- A mail has the base href tag defined in the header of the mail html
- The mail body has a relative tag with a href
Once the MailItem.HTMLBody is read the relative tag(a href) is
replaced with the full url.

eg. The mail has the following html as the source
html
head
base href="http://sample.com/aa/bb/cc"/base
/head
body
a href="dd"Text/a
/body
/html

The MailItem.HTMLBody returns the following
html
head
base href="http://sample.com/aa/bb/cc"/base
/head
body
a href="http://sample.com/aa/bb/dd"Text/a
/body
/html

But when Redemption.SafeMailItem is used its html results as per
original mail above(1st html) without the full url for the href tags.
Is there a facility in Redemption to read the html with the full urls
as per MS Outlook mail item?
Redemption ver. in use, 4.5.0.812.

Please advice.











 




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Smart tags Jerry Outlook - Using Contacts 3 January 26th 09 02:55 PM
Outlook Smart Tags pst Outlook - Using Contacts 1 June 28th 08 10:44 AM
OE is printing all HTML tags Tube Dave Outlook Express 3 January 11th 08 09:20 AM
HTML tags in messages BP Outlook - General Queries 0 March 29th 06 03:01 AM
Desktop Alert display href content Firas Rashid Outlook - General Queries 2 February 21st 06 12:54 PM


All times are GMT +1. The time now is 03:40 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2025 Outlook Banter.
The comments are property of their posters.