Field Formula for Internet header?

G

Guest

I'm using Outlook 2002 and we have an Excahnge 2000 server. Is there any way to add the Internet headers of a mail message as a viewable / searchable field to a view in Outlook?

For example, I get lots of spam, and I like to separate the html spam from the plain text spam. (This way I can open plain text spam without worrying that it's going to try to "phone home," or worse, just by my opening it.) The only thing I've been able to do so far is use the Rules Wizard to search for specific text in the header. I created this rule:

Apply to message
with "Content-Type: text/plain;" in the message header
move it to the "Spam - Plain text" folder
except if the message header contains "'multipart' or 'multi-part' or 'html'"

Then I manually run this rule on all Unread messages in my Spam folder to separate the plain text from the rest.

How come "message header" is available in the Rules Wizard, but *not* as a Field in the Field Chooser? (Even though "Message," the message body, *is* a Field -- go figure). It must exist somewhere, else how would the Rules Wizard be able to use it, right?

Alternatively, is there a way to use a field formula to look for these strings in the message header? Then I could have a field labeled "Content type" that would show "HTML" or "Plain Text" or "RTF," etc. Where can I learn more about how to use formulas, and how do I find the names of all the Outlook fields (including the ones not listed in the Field Chooser)?

Thanks,
PatrickS
 
K

Ken Slovak - [MVP - Outlook]

The Internet headers aren't exposed to the Outlook object model so
they aren't available as fields you can use. Outlook can get them
"behind the scenes' using a MAPI property
(PR_TRANSPORT_MESSAGE_HEADERS). You can see that property in mail
messages using MDBVue or OutlookSpy (www.dimastr.com).

You can use CDO 1.21 code in a script to show the headers, but that
will fire the security prompts. See
http://www.slovaktech.com/code_samples.htm#InternetHeaders for an
example of that.




PatrickS said:
I'm using Outlook 2002 and we have an Excahnge 2000 server. Is there
any way to add the Internet headers of a mail message as a viewable /
searchable field to a view in Outlook?
For example, I get lots of spam, and I like to separate the html
spam from the plain text spam. (This way I can open plain text spam
without worrying that it's going to try to "phone home," or worse,
just by my opening it.) The only thing I've been able to do so far is
use the Rules Wizard to search for specific text in the header. I
created this rule:
Apply to message
with "Content-Type: text/plain;" in the message header
move it to the "Spam - Plain text" folder
except if the message header contains "'multipart' or 'multi-part' or 'html'"

Then I manually run this rule on all Unread messages in my Spam
folder to separate the plain text from the rest.
How come "message header" is available in the Rules Wizard, but
*not* as a Field in the Field Chooser? (Even though "Message," the
message body, *is* a Field -- go figure). It must exist somewhere,
else how would the Rules Wizard be able to use it, right?
Alternatively, is there a way to use a field formula to look for
these strings in the message header? Then I could have a field labeled
"Content type" that would show "HTML" or "Plain Text" or "RTF," etc.
Where can I learn more about how to use formulas, and how do I find
the names of all the Outlook fields (including the ones not listed in
the Field Chooser)?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top