Massaging email addresses to extract a common domain

I need to find a “simple” and “logical” way to find if mail being sent is going to someone inside my domain or external - other than by looking up on Domino Directory (user may be offline without full local directory).

For example, say my email is wn@uc.ibm.com.uk I’m sending to

fred@uc.ibm.com.au

joe@ibm.com

mary@ger.ibm.co.de

john@ibm.org.

The first three are inside my domain, but john isn’t.

Anyway I can code this? NotesName doesn’t do it.

Subject: There are some third party products

I am sure it can be done but how do you want to capture that information? At the server level or client level.

There are some third party products that can log, capture, and block email from/to certain individuals if that helps.

Subject: sadly, I’m looking for a local solution

and I need to know at the time of mail construction whether the recipient is inside or outside.

Thanks for the input.

Subject: Update your mail template?..

  • On mail send do your check against what’s in the template.

  • It’s not pretty, but it does have three advantages:

  1. It’s available offline. Once the mail template is replicated everyone has it.

  2. One update serves all. Design update ensures that.

  3. It applies to everyone. Everyone has a mail database based on a mail template.

  • Then again, can you be sure the mail template is replicated? I don’t know the logistics of that sort of thing. It’s entirely possible it’s just as easy to ensure replication of a separate DB as it is to ensure mail template replication and design update. I’ve always thought mail was special in that regard.

Hope this helps…

Subject: see MK products

there is a product called MK Email Size Limiter that does it in the workstation side without needing to modify the template.Take a look at www.mknetwork.com

HTH

Subject: only way is to hard code the logic into your coce

If you know all the internal email domains you can hardcode those into your code and make a check.The only place where Domino stores a complete list of users in a particular domain is in the Domino Directory.

Regards,
Hans

Subject: even if I know the internal domain is…

I still need a simple way to find what the recipient’s domain is.