Permalink
Browse files

Merge branch 'master' of https://github.com/mronge/MailCore

  • Loading branch information...
mronge committed Jul 27, 2013
2 parents 55c2017 + 1b20901 commit 68b35188224bdd43e01e9f3c90a1cba3a67cfb5c
Showing with 14 additions and 0 deletions.
  1. +6 −0 Source/CTSMTPAsyncConnection.m
  2. +8 −0 Source/CTSMTPConnection.m
@@ -223,9 +223,15 @@ - (void)sendMailThread {
if (!success) {
goto error;
}
+ NSSet *tmpBcc = theMessage.bcc;
+
+ // Temporarily wipe out BCC so it isn't sent with the message
+ theMessage.bcc = nil;
//send
success = [mSMTPObj setData:[theMessage render]];
+
+ theMessage.bcc = tmpBcc;
if (success) {
mStatus = CTSMTPAsyncSuccess;
} else if (success && [mMailThread isCancelled]) {
@@ -92,9 +92,17 @@ + (BOOL)sendMessage:(CTCoreMessage *)message server:(NSString *)server username:
if (!success) {
goto error;
}
+
+ NSSet *tmpBcc = message.bcc;
+ // Temporarily wipe out BCC so it isn't sent with the message
+ message.bcc = nil;
+
/* data */
success = [smtpObj setData:[message render]];
+
+ message.bcc = tmpBcc;
+
if (!success) {
goto error;
}

0 comments on commit 68b3518

Please sign in to comment.