SMTP-Client: while evaluating failed attempts:
authorWilfried Goesgens <dothebart@citadel.org>
Mon, 29 Dec 2014 10:45:58 +0000 (11:45 +0100)
committerWilfried Goesgens <dothebart@citadel.org>
Mon, 29 Dec 2014 10:45:58 +0000 (11:45 +0100)
  - if we decide to fail complete, finalize the sending of the message.

citadel/modules/smtp/serv_smtpeventclient.c

index a9317105dc123053b0d101fbe577e8a0755e7b8e..337aa494bebcead232688fdf6b0c3691b9ec9d08 100644 (file)
@@ -288,12 +288,12 @@ eNextState FailOneAttempt(AsyncIO *IO)
            Msg->MyQItem->HaveRelay)
        {
                EVS_syslog(LOG_DEBUG, "%s Aborting; last relay failed.\n", __FUNCTION__);
-               return eAbort;
+               return FinalizeMessageSend(Msg);
        }
 
        if (Msg->pCurrRelay == NULL) {
                EVS_syslog(LOG_DEBUG, "%s Aborting\n", __FUNCTION__);
-               return eAbort;
+               return FinalizeMessageSend(Msg);
        }
        if (Msg->pCurrRelay->IsIP) {
                EVS_syslog(LOG_DEBUG, "%s connecting IP\n", __FUNCTION__);