Blocking emails from mail-in databases

My users have identified a problem with the way in which blocking emails from mail-in databases is being handled.

We routinely have internal emails being manually generated from mail-in databases. The Principal field will be the name of the database (e.g. “MDB-Social Club”) and the From field will be the name of the person sending it (e.g. “CN=Fred Smith/OU=XXX/O=YYY”).

When you try to use the “Deliver Sender’s Mail to Junk” button from documents opened from the Trash folder, it doesn’t allow the email to be blocked. It displays the error message “This address is invalid and can not be blocked”.

Looking at the code in the GetAddress function in the BlockUserRule script library, it appears that it uses the Principal field, tests the name using the IsHierarchical method (which in this case returns false), so it assumes it is an internet address. When it then tests using the Addr821 method, this also returns false, hence the error.

Is this a known issue? Alternatively, what is the workaround that users should use for this scenario?