Is there any way to identify original message text in "Item.Body"

I

IanC

Hi,

I've added the "anti-embarrassment" code to check for key words
"attachment" "enclosure" etc in emails on Application_ItemSend – this
code pops up a dialog box if any of the key words are found and there
is no attachment. This works fine when I am the originator of a new
mail

The problem is that when replying to received emails, often the
original message text gets a company disclaimer added that includes
one of the key words, so I get a invalid warning that I have
"attachment" in my text and no such attachment.

There is an option to not spell check original message text – which
implies you can split Item.body text into original and new text.

So how to do this - are there any Item.Body properties or any other
way to restrict something like an InStr test to just the new text? Or
an "On Load" method where you can store original text before editing
starts?

Regards,

Ian
 
S

Sue Mosher [MVP-Outlook]

No, there's no distinguishing characteristic other than the header that
Outlook inserts with the date, sender, subject, etc. from the original
message. You'd have to parse the text and know what you're looking for and
what to ignore.

The spell check option doesn't work in all situations, FWIW.
 

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