![]() |
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. |
|
|
Thread Tools | Search this Thread | Display Modes |
#1
|
|||
|
|||
![]()
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
|
|||
|
|||
![]()
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
|
|||
|
|||
![]()
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
|
|||
|
|||
![]()
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
|
|||
|
|||
![]()
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 |
Display Modes | |
|
|
![]() |
||||
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 |