RemoveQItem(Msg->MyQItem);
}
+
+ RemoveContext(Msg->IO.CitContext);
DeleteSmtpOutMsg(Msg);
}
* possible ways here:
* - connection timeout
* -
- */
- SendMsg->pCurrRelay = SendMsg->pCurrRelay->Next;
+ */
+ if (SendMsg->pCurrRelay != NULL)
+ SendMsg->pCurrRelay = SendMsg->pCurrRelay->Next;
if (SendMsg->pCurrRelay == NULL)
return eAbort;
else SendMsg->msgtext = NewStrBufDup(MsgText);
if (smtp_resolve_recipients(SendMsg)) {
-
-
-
+ CitContext *SubC;
+ SubC = CloneContext (CC);
+ SubC->session_specific_data = (char*) SendMsg;
+ SendMsg->IO.CitContext = SubC;
if (SendMsg->pCurrRelay == NULL)
QueueEventContext(&SendMsg->IO,
void SMTPSetTimeout(eNextState NextTCPState, SmtpOutMsg *pMsg)
{
+ double Timeout = 0.0;
+
CtdlLogPrintf(CTDL_DEBUG, "SMTP: %s\n", __FUNCTION__);
- double Timeout;
+
switch (NextTCPState) {
case eSendReply:
case eSendMore: