]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib-smtp: smtp-server-recipient - Add smtp_server_recipient_reply_forward().
authorStephan Bosch <stephan.bosch@dovecot.fi>
Fri, 15 Mar 2019 00:50:01 +0000 (01:50 +0100)
committerMartti Rannanjärvi <martti.rannanjarvi@open-xchange.com>
Wed, 25 Sep 2019 08:25:20 +0000 (11:25 +0300)
This acts as a wrapper around smtp_server_reply_index_forward().

src/lib-smtp/smtp-server-recipient.c
src/lib-smtp/smtp-server.h

index 3379c61ee3fed3b4742a3bee6c625876a3379e02..db14a3c00a9792c66b7b74103e28cccefb982576 100644 (file)
@@ -171,6 +171,12 @@ void smtp_server_recipient_reply(struct smtp_server_recipient *rcpt,
        va_end(args);
 }
 
+void smtp_server_recipient_reply_forward(struct smtp_server_recipient *rcpt,
+                                        const struct smtp_reply *from)
+{
+       smtp_server_reply_index_forward(rcpt->cmd, rcpt->index, from);
+}
+
 void smtp_server_recipient_reset(struct smtp_server_recipient *rcpt)
 {
        i_assert(!rcpt->finished);
index 9b16e9448acd10ef4a8c556da17487b102c04e80..3634272ca621d4b0233311c7dcb130e71074e14a 100644 (file)
@@ -91,6 +91,8 @@ void smtp_server_recipient_replyv(struct smtp_server_recipient *rcpt,
 void smtp_server_recipient_reply(struct smtp_server_recipient *rcpt,
                                 unsigned int status, const char *enh_code,
                                 const char *fmt, ...) ATTR_FORMAT(4, 5);
+void smtp_server_recipient_reply_forward(struct smtp_server_recipient *rcpt,
+                                        const struct smtp_reply *from);
 
 /* Hooks */