> I would like to enhance it to cater for the situations where I am not in
> the "To" address (e.g. I am in CC: to Bcc: or the "mailing list"
> situation.

BCC you aren't going to get, by definition.  It isn't there to get.

To check in both to and cc, use ToCc instead of To as the header to test.


> How would I do a test of the form:
>
> If To: email address contains ernstoff.net then check for To: real name
> contains Mike or Michael or is blank?

Its pretty gruesome because there are about a dozen different valid email
address formats, for instance:

    "Joe Fudge" <[EMAIL PROTECTED]>
    "Joe Fudge" [EMAIL PROTECTED]
    Joe Fudge <[EMAIL PROTECTED]>
    [EMAIL PROTECTED]
    [EMAIL PROTECTED]

(Modulo whatever wonderful reformatting OE has decided to do for me on those
text lines.)

        Loren


Reply via email to