Skip to content

Commit

Permalink
lib-smtp: smtp-server-recipient - Add smtp_server_recipient_reply_for…
Browse files Browse the repository at this point in the history
…ward().

This acts as a wrapper around smtp_server_reply_index_forward().
  • Loading branch information
stephanbosch committed Mar 19, 2019
1 parent ac59dd4 commit 82c364a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/lib-smtp/smtp-server-recipient.c
Expand Up @@ -173,6 +173,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);
Expand Down
2 changes: 2 additions & 0 deletions src/lib-smtp/smtp-server.h
Expand Up @@ -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 */

Expand Down

0 comments on commit 82c364a

Please sign in to comment.