}
}
-static void
-lmtp_proxy_rcpt_cb(const struct smtp_reply *proxy_reply,
- struct lmtp_proxy_recipient *rcpt)
-{
- struct lmtp_proxy_connection *conn = rcpt->conn;
- string_t *reply;
-
- i_assert(rcpt->reply == NULL);
-
- reply = t_str_new(128);
- lmtp_proxy_write_reply(reply, proxy_reply);
-
- rcpt->reply = p_strdup(conn->proxy->pool, str_c(reply));
- rcpt->rcpt_to_failed = !smtp_reply_is_success(proxy_reply);
-}
-
static bool
client_proxy_rcpt_parse_fields(struct lmtp_proxy_rcpt_settings *set,
const char *const *args, const char **address)
return TRUE;
}
+static void
+lmtp_proxy_rcpt_cb(const struct smtp_reply *proxy_reply,
+ struct lmtp_proxy_recipient *rcpt)
+{
+ struct lmtp_proxy_connection *conn = rcpt->conn;
+ string_t *reply;
+
+ i_assert(rcpt->reply == NULL);
+
+ reply = t_str_new(128);
+ lmtp_proxy_write_reply(reply, proxy_reply);
+
+ rcpt->reply = p_strdup(conn->proxy->pool, str_c(reply));
+ rcpt->rcpt_to_failed = !smtp_reply_is_success(proxy_reply);
+}
+
int lmtp_proxy_add_rcpt(struct lmtp_proxy *proxy,
const struct smtp_address *address,
const struct lmtp_proxy_rcpt_settings *set)