best way to retrieve headers and original message source

  • Thread starter Thread starter Luther Miller
  • Start date Start date
L

Luther Miller

I'm working on a SPAM reporting macro, and I would like to retrieve
the original SMTP message headers AND source in plan text format
(e.g., if the original message was HTML, I would get all the tags
etc., ... I want it however it was sent w/o modifications). I am using
O2003. I found some CDO code to get the headers... how should I get
the body? Is there a simple VBA script to get both? TIA..
 
Outlook does not store the original RFC 822 message (Exchange 2000/2003 do
in some cases). The best you can do is reconstruct the RFC822 envelope from
various MAPI properties or use a third-party library (e.g. Redemption - see
SafeMailItem.SaveAs)

Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
 
I know how to get the headers - what would be the best way to retrieve
the original "body"? (e.g., html source if it was an html message,
etc.)
 
Back
Top