SMTP-Client: send a message on first failed, or permanently failed attempt & on last...
[citadel.git] / citadel / modules / smtp / serv_smtpeventclient.c
index 7374107d810ccbfcdc20d5427651d4c1a097ea19..90a36b23539f6582b823bd1ec4ce023b834b9562 100644 (file)
@@ -143,7 +143,7 @@ void FinalizeMessageSend(SmtpOutMsg *Msg)
            CheckQEntryIsBounce(Msg->MyQEntry))
        {
                /* are we casue for a bounce mail? */
-               Msg->MyQItem->SendBounceMail = 1;
+               Msg->MyQItem->SendBounceMail |= (1<<Msg->MyQEntry->Status);
        }
 
        if ((nRemain > 0) || IDestructQueItem)