Skip to content

Commit

Permalink
Merge pull request #74 from sanastasiadis/patch-1
Browse files Browse the repository at this point in the history
#73 correction of regular expression for X500 addresses detection
  • Loading branch information
bbottema authored Apr 4, 2024
2 parents 0957d1b + ad35019 commit 9e4aba1
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ private void handleNameAddressProperty(int mapiClass, String probablyNamePossibl
if ((this.address == null || nameWasUsedAsAddress) && probablyNamePossiblyAddress.contains("@")) {
setAddress(probablyNamePossiblyAddress);
nameWasUsedAsAddress = false;
} else if (this.address == null && probablyNamePossiblyAddress.matches("/o=[^/]+/ou=[^/]+(?:/cn=[^/]+)?")) {
} else if (this.address == null && probablyNamePossiblyAddress.matches("/o=[^/]+/ou=[^/]+(?:/cn=[^/]+)*")) {
// highly likely an X500 address
setAddress(probablyNamePossiblyAddress);
nameWasUsedAsAddress = false;
Expand Down

0 comments on commit 9e4aba1

Please sign in to comment.