bool debug = ns->mail_set->mail_debug;
const char *home, *path;
- if (mail_user_get_home(ns->user, &home) > 0) {
+ if (mail_user_get_home(ns->owner, &home) > 0) {
path = t_strconcat(home, "/mdbox", NULL);
if (access(path, R_OK|W_OK|X_OK) == 0) {
if (debug)
/* we'll need to figure out the maildir location ourself.
It's ~/Maildir unless we are chrooted. */
- if (mail_user_get_home(ns->user, &home) > 0) {
+ if (mail_user_get_home(ns->owner, &home) > 0) {
path = t_strconcat(home, "/Maildir", NULL);
if (access(path, R_OK|W_OK|X_OK) == 0) {
if (debug)
bool debug = ns->mail_set->mail_debug;
const char *home, *path;
- if (mail_user_get_home(ns->user, &home) <= 0) {
+ if (mail_user_get_home(ns->owner, &home) <= 0) {
if (debug)
i_debug("maildir: Home directory not set");
home = "";