Skip to content

Commit b0cde5a

Browse files
authored
Merge pull request #67 from dwlabcube/patch-X500-Outlook-Recipient
Adding possibility to parse X500 Names
2 parents 3d20f4f + ce95719 commit b0cde5a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/main/java/org/simplejavamail/outlookmessageparser/model/OutlookRecipient.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,9 @@ private void handleNameAddressProperty(int mapiClass, String probablyNamePossibl
7272
if (this.address == null && probablyNamePossiblyAddress.contains("@")) {
7373
setAddress(probablyNamePossiblyAddress);
7474
nameWasUsedAsAddress = true;
75+
} else if (this.address == null && probablyNamePossiblyAddress.startsWith("/o=ExchangeLabs/ou=Exchange Administrative Group")) {
76+
setAddress(probablyNamePossiblyAddress);
77+
nameWasUsedAsAddress = false;
7578
}
7679
}
7780
}

0 commit comments

Comments
 (0)