Skip to content

Commit ce95719

Browse files
authored
Adding possibility to parse X500 Names from Exchange Recipients which are not resolved yet.
1 parent 3d20f4f commit ce95719

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)