Skip to content

Commit 7e3fc04

Browse files
Ignore AAD destination addresses in recipient check. Fixes #6
1 parent 49996fe commit 7e3fc04

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Walled Garden Outlook AddIn/OutlookAddIn/ThisAddIn.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ void OutlookApplication_ItemSend(object Item, ref bool Cancel)
2626

2727
foreach (Recipient recipient in this.mailItem.Recipients)
2828
{
29-
if (!recipient.Address.EndsWith(Domain))
29+
if (recipient.Address.Contains("@") && !recipient.Address.EndsWith(Domain))
3030
{
3131
Outsiders += "- " + recipient.Address + "\r\n";
3232
}

0 commit comments

Comments
 (0)