int pop3_lock_session(struct client *client)
{
- const struct mail_storage_settings *mail_set =
- mail_storage_service_user_get_mail_set(client->user->service_user);
struct dotlock_settings dotlock_set;
enum mailbox_list_path_type type;
const char *dir, *path;
path = t_strdup_printf("%s/"POP3_LOCK_FNAME, dir);
dotlock_set = session_dotlock_set;
- dotlock_set.use_excl_lock = mail_set->dotlock_use_excl;
- dotlock_set.nfs_flush = mail_set->mail_nfs_storage;
+ dotlock_set.use_excl_lock = client->inbox_ns->mail_set->dotlock_use_excl;
+ dotlock_set.nfs_flush = client->inbox_ns->mail_set->mail_nfs_storage;
ret = file_dotlock_create(&dotlock_set, path, 0,
&client->session_dotlock);
client->user = user;
- client->mail_set = mail_user_set_get_storage_set(user);
+ const struct mail_storage_settings *mail_set =
+ mail_user_set_get_storage_set(client->user);
client->uidl_keymask =
- parse_uidl_keymask(client->mail_set->pop3_uidl_format);
+ parse_uidl_keymask(mail_set->pop3_uidl_format);
if (client->uidl_keymask == 0)
i_fatal("Invalid pop3_uidl_format");
};
const char *error;
- if (var_expand(str, client->mail_set->pop3_uidl_format,
+ if (var_expand(str, client->inbox_ns->mail_set->pop3_uidl_format,
tab, &error) <= 0) {
e_error(client->event,
"UIDL: Failed to expand pop3_uidl_format=%s: %s",
- client->mail_set->pop3_uidl_format, error);
+ client->inbox_ns->mail_set->pop3_uidl_format, error);
return -1;
}
return 0;