From d8b09c1d9d61ae5e16187611995ad8dbb32e3d1d Mon Sep 17 00:00:00 2001
From: Patrick Simpson
Date: Mon, 31 Jul 2017 10:13:55 +0300
Subject: [PATCH] [KOE-23] Fixed for multiple BCC recipients
---
.../AcaciaZPushPlugin/Features/BCC/FeatureBCC.cs | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/src/AcaciaZPushPlugin/AcaciaZPushPlugin/Features/BCC/FeatureBCC.cs b/src/AcaciaZPushPlugin/AcaciaZPushPlugin/Features/BCC/FeatureBCC.cs
index 1d7b615..27e55ec 100644
--- a/src/AcaciaZPushPlugin/AcaciaZPushPlugin/Features/BCC/FeatureBCC.cs
+++ b/src/AcaciaZPushPlugin/AcaciaZPushPlugin/Features/BCC/FeatureBCC.cs
@@ -80,9 +80,12 @@ namespace Acacia.Features.BCC
{
using (IRecipients recipients = mail.Recipients)
{
- using (IRecipient recip = CreateRecipient(recipients, decoded))
+ foreach (string entry in decoded.Split(new string[] { "\r\n", "\n" }, StringSplitOptions.None))
{
- recip.Type = MailRecipientType.BCC;
+ using (IRecipient recip = CreateRecipient(recipients, entry))
+ {
+ recip.Type = MailRecipientType.BCC;
+ }
}
}
}