int cmd_rcpt(struct client *client, const char *args)
{
- struct mail_recipient *rcpt;
+ struct lmtp_recipient *rcpt;
struct mail_storage_service_input input;
struct smtp_address *address;
const char *username, *detail;
return 0;
}
- rcpt = p_new(client->state_pool, struct mail_recipient, 1);
+ rcpt = p_new(client->state_pool, struct lmtp_recipient, 1);
rcpt->client = client;
/* [SP Rcpt-parameters] */
const char *host;
if (array_count(&client->state.rcpt_to) == 1) {
- struct mail_recipient *const *rcptp =
+ struct lmtp_recipient *const *rcptp =
array_idx(&client->state.rcpt_to, 0);
sets = mail_storage_service_user_get_set((*rcptp)->service_user);
* Recipient
*/
-void client_rcpt_anvil_disconnect(const struct mail_recipient *rcpt)
+void client_rcpt_anvil_disconnect(const struct lmtp_recipient *rcpt)
{
const struct mail_storage_service_input *input;
static void
client_send_line_overquota(struct client *client,
- const struct mail_recipient *rcpt, const char *error)
+ const struct lmtp_recipient *rcpt, const char *error)
{
struct lda_settings *lda_set =
mail_storage_service_user_get_set(rcpt->service_user)[2];
static void
client_rcpt_fail_all(struct client *client)
{
- struct mail_recipient *const *rcptp;
+ struct lmtp_recipient *const *rcptp;
array_foreach(&client->state.rcpt_to, rcptp) {
client_send_line(client, ERRSTR_TEMP_MAILBOX_FAIL,
static int
lmtp_rcpt_to_is_over_quota(struct client *client,
- const struct mail_recipient *rcpt)
+ const struct lmtp_recipient *rcpt)
{
struct mail_user *user;
struct mail_namespace *ns;
return ret;
}
-bool cmd_rcpt_finish(struct client *client, struct mail_recipient *rcpt)
+bool cmd_rcpt_finish(struct client *client, struct lmtp_recipient *rcpt)
{
int ret;
void rcpt_anvil_lookup_callback(const char *reply, void *context)
{
- struct mail_recipient *rcpt = context;
+ struct lmtp_recipient *rcpt = context;
struct client *client = rcpt->client;
const struct mail_storage_service_input *input;
unsigned int parallel_count = 0;
*/
static int
-client_deliver(struct client *client, const struct mail_recipient *rcpt,
+client_deliver(struct client *client, const struct lmtp_recipient *rcpt,
struct mail *src_mail, struct mail_deliver_session *session)
{
struct mail_deliver_context dctx;
uid_t first_uid = (uid_t)-1;
struct mail *src_mail;
- struct mail_recipient *const *rcpts;
+ struct lmtp_recipient *const *rcpts;
unsigned int count;
int ret;
src_mail = client->state.raw_mail;
#define LMTP_LOCAL_H
struct client;
-struct mail_recipient;
+struct lmtp_recipient;
struct mail_deliver_session;
-void client_rcpt_anvil_disconnect(const struct mail_recipient *rcpt);
+void client_rcpt_anvil_disconnect(const struct lmtp_recipient *rcpt);
-bool cmd_rcpt_finish(struct client *client, struct mail_recipient *rcpt);
+bool cmd_rcpt_finish(struct client *client, struct lmtp_recipient *rcpt);
void rcpt_anvil_lookup_callback(const char *reply, void *context);