This makes it more consistent with other settings.
event_add_int(event, "remote_port", input->remote_port);
service_input = *input;
- service_input.parent_event = event;
+ service_input.event_parent = event;
if (mail_storage_service_lookup_next(storage_service, &service_input,
&user, &mail_user, error_r) <= 0) {
event_unref(&event);
service_input.module = "lda";
service_input.service = "lda";
service_input.username = user;
- service_input.parent_event = event;
+ service_input.event_parent = event;
service_flags |= MAIL_STORAGE_SERVICE_FLAG_USE_SYSEXITS;
storage_service = mail_storage_service_init(master_service, set_roots,
/* Create an event that will be used as the default event for logging.
This event won't be a parent to any other events - mail_user.event
will be used for that. */
- user->event = event_create(input->parent_event);
+ user->event = event_create(input->event_parent);
event_set_forced_debug(user->event,
user->service_ctx->debug || (flags & MAIL_STORAGE_SERVICE_FLAG_DEBUG) != 0);
event_add_fields(user->event, (const struct event_add_field []){
};
struct mail_storage_service_input {
- struct event *parent_event;
+ struct event *event_parent;
const char *module;
const char *service;
input.forward_fields = lrcpt->forward_fields;
event_add_str(rcpt->event, "session", session_id);
- input.parent_event = rcpt->event;
+ input.event_parent = rcpt->event;
ret = mail_storage_service_lookup(storage_service, &input,
&service_user, &error);
}
i_zero(&input);
- input.parent_event = client->event;
+ input.event_parent = client->event;
smtp_address_detail_parse_temp(quota_status_settings->recipient_delimiter,
rcpt, &input.username, &delim,
&detail);