--- a/email/pop3andsmtpmtm/smtpservermtm/src/IMSMSEND.CPP Tue Oct 05 13:58:47 2010 +0530
+++ b/email/pop3andsmtpmtm/smtpservermtm/src/IMSMSEND.CPP Tue Oct 19 11:30:16 2010 +0530
@@ -56,8 +56,9 @@
Connect the session to the server
@param aClientStatus Client status to be completed
+@param aIsSilent If ETrue then Silent Connection is required
*/
-void CImSmtpSession::ConnectL(TRequestStatus& aClientStatus)
+void CImSmtpSession::ConnectL(TRequestStatus& aClientStatus, TBool aIsSilent)
{
__ASSERT_DEBUG(!iSocketIsConnected, gPanic(EImsmSocketAlreadyConnected));
@@ -72,7 +73,7 @@
iCompleted = KErrNone;
iState = EConnectingToSmtp; // Initialise to 1st state of state machine
- DoStateL(); // Here we go...
+ DoStateL(aIsSilent); // Here we go...
Queue(aClientStatus);
}
else
@@ -316,16 +317,19 @@
TInt numberRcpts = rcptArray->Count();
if(numberRcpts)
- {
- iSendFiles->BccRcptArray().AppendL((*rcptArray)[0]);
- CDesCArray& tempArr = iSendFiles->BccRcptArray();
- for(TInt counter=1; counter<numberRcpts; counter++)
- {
- TInt aPos = 0;
- tempArr.Find((*rcptArray)[counter],aPos,ECmpFolded16);
- if(aPos > 0)
- iSendFiles->BccRcptArray().AppendL((*rcptArray)[counter]);
- }
+ {
+ iSendFiles->BccRcptArray().AppendL((*rcptArray)[0]);
+ CDesCArray& tempArr = iSendFiles->BccRcptArray();
+ for(TInt counter=1; counter<numberRcpts; counter++)
+ {
+ TInt aPos = 0;
+ TInt found = tempArr.Find((*rcptArray)[counter],aPos,ECmpFolded16);
+ if(found == KErrNone && aPos > 0)
+ {
+ iSendFiles->BccRcptArray().AppendL((*rcptArray)[counter]);
+ }
+
+ }
}
rcptArray->Reset();
}
@@ -820,7 +824,7 @@
return EClosingSmtp;
}
-void CImSmtpSession::DoStateL()
+void CImSmtpSession::DoStateL(TBool aIsSilent)
// performs the operation required by iState
{
switch (iState)
@@ -830,6 +834,7 @@
i8BitMimeAcceptedHere = EFalse;
iSizeAcceptedHere = EFalse;
iStartTlsAcceptedHere = EFalse;
+ iSocket->SetSilentConnection(aIsSilent);
if(iSettings.SSLWrapper())
{
// Open secure socket on port 465 for SMTP session