But, Diane, my very own example shows that "looks for words in the body" doesn't work unless you take explicit steps to make sure that the asynchronous population of the MailItem members by Outlook has been given sufficient time to populate .Body before you test anything using it.
The entire crux of the script not working appears to be secondary to the script being handed a MailItem that "isn't done being populated yet." Whether or not what I'm doing is common or not, what is being passed is not something that any reasonable programmer would expect that they were getting. Objects should be an "all or nothing" deal, with anything that can be populated actually being populated, and the remainder having been initialized to NULL, before they are ever passed along for downstream processing.
Even my tests for IsNull on a .Body that contained, literally, nothing was failing. From what I can find of the "Is Nothing" test that would apply to an object as a whole. not to members.
In any case, a solution has been identified, which leaves my blind client in a much better position to snag a translating gig when the offers arrive. Trying to manually activate the link in the message with a screen reader takes much longer than it does for those of us who have sight to "point and click" and the gigs he competes for are very much "response time is of the essence."
I know that one of your posts on slipstick covers how to turn on the VBA regular expression processing library, and you directed me to that a while back, but I cannot for the life of me find the page via search or my own web history. Would you mind directing me there again?
Thanks so very much. I'm going to paste the step-by-step instructions I just put together for my client in case anyone needs to do this. It's written with a focus on keyboard shortcuts since he's blind and cannot use the mouse, but anyone who can see will easily be able to determine the "point and click" equivalents:
Once Outlook is open, and you have focus on the inbox on which the rule is supposed to run:
1. Hit ALT+F11 to open the VBA Editor.
2. Hit ALT+T,R to open the Tools menu, References Dialog
3. Once the References Dialog is open, search for the checkbox for "Microsoft VBScript Regular Expressions 5.5" and check it. (If the 5.5 has been changed, don't worry, whatever version of Microsoft VBScript Regular Expressions that shows up should have the checkbox checked).
4. Hit the OK button on the References Dialog to close it.
5. Hit ALT+F,C to close the VBA editor.
Brian, who didn't know whether the 5.5 would still be carried over to Outlook 2016, but it's absolutely there for Outlook 2010