]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib-smtp: client: Add debug message for the moment when all RCPT replies are received.
authorStephan Bosch <stephan.bosch@dovecot.fi>
Wed, 15 Aug 2018 22:50:12 +0000 (00:50 +0200)
committerTimo Sirainen <timo.sirainen@dovecot.fi>
Wed, 22 Aug 2018 08:50:33 +0000 (08:50 +0000)
This helps in debugging transaction state transition problems.

src/lib-smtp/smtp-client-transaction.c

index 33951c512385748fc0cb43b1c7220d76e407c76e..b1fb53ff93fe078456d845163c530c7cee1bc3aa 100644 (file)
@@ -550,6 +550,8 @@ smtp_client_transaction_rcpt_cb(const struct smtp_reply *reply,
        rcpt_callback(reply, context);
 
        if (trans->data_provided && array_count(&trans->rcpts_pending) == 0) {
+               smtp_client_transaction_debug(trans, "Got all RCPT replies");
+
                trans->state = SMTP_CLIENT_TRANSACTION_STATE_DATA;
 
                if (array_count(&trans->rcpts) == 0) {
@@ -747,6 +749,9 @@ void smtp_client_transaction_send(
 {
        i_assert(trans->state < SMTP_CLIENT_TRANSACTION_STATE_FINISHED);
 
+       if (array_count(&trans->rcpts_pending) == 0)
+               smtp_client_transaction_debug(trans, "Got all RCPT replies");
+
        smtp_client_transaction_debug(trans, "Send");
 
        trans->data_provided = TRUE;