-1

I'm developing an Outlook Add-In (2007, VBA), which is supposed to send the raw Internet Headers of a MailItem to a Server, which then does some processing. With raw I mean before they are decoded.

I am aware of the GetInetHeaders-Function, but is there a way to get the headers before they are decoded by Outlook?

Martijn Pieters
  • 1,048,767
  • 296
  • 4,058
  • 3,343
fig
  • 15
  • 2

1 Answers1

0

No, Outlook receives the message and decodes before it is saved and hence becomes visible through the Outlook Object Model or MAPI.

Why exactly do you need to do that?

Dmitry Streblechenko
  • 62,942
  • 4
  • 53
  • 78
  • It's how the server API is implemented at the moment. Currently the server receives a JSON object from Thunderbird, which adds the undecoded headers to the object, and then processes it. If it had been possible to construct the same object in Outlook as well, the server API and the Thunderbird plugin wouldn't have to be changed, now I guess that become necessary (although it's not much of an issue). Thanks for your reply! – fig Jul 09 '13 at 16:55
  • What are these undecoded headers used for? Would it not be simpler to explicitly set the properties exposed by Outlook (e.g. MailItem.Subject etc.)? – Dmitry Streblechenko Jul 09 '13 at 17:41
  • well yes, you're right, that is exactly what I am going to do know, it'll work fine. It was only because the Thunderbird version of my Outlook Add-in sends the undecoded headers, and if Outlook could have done the same thing, we wouldn't have to change the Tunderbird Addon. That's actually a minor task, it just that I'm quite new to Outlook development, so I'm being curious about what Outlook can and what it can't. – fig Jul 09 '13 at 19:13