Commit ddc1e76b ddc1e76b7e1f0508e84c0805457ee02732e4d30e by Sergey Poznyakoff

Use mu_virtual_domain instead of is_virtual.

1 parent 032eb706
...@@ -73,7 +73,7 @@ imap4d_copy0 (char *arg, int isuid, char *resp, size_t resplen) ...@@ -73,7 +73,7 @@ imap4d_copy0 (char *arg, int isuid, char *resp, size_t resplen)
73 return RESP_BAD; 73 return RESP_BAD;
74 } 74 }
75 75
76 if (strcasecmp (name, "INBOX") == 0 && !is_virtual) 76 if (strcasecmp (name, "INBOX") == 0 && !mu_virtual_domain)
77 { 77 {
78 struct passwd *pw = getpwuid (getuid()); 78 struct passwd *pw = getpwuid (getuid());
79 mailbox_name = strdup ((pw) ? pw->pw_name : ""); 79 mailbox_name = strdup ((pw) ? pw->pw_name : "");
......
...@@ -57,7 +57,7 @@ imap4d_select0 (struct imap4d_command *command, char *arg, int flags) ...@@ -57,7 +57,7 @@ imap4d_select0 (struct imap4d_command *command, char *arg, int flags)
57 imap4d_sync (); 57 imap4d_sync ();
58 } 58 }
59 59
60 if (strcasecmp (mailbox_name, "INBOX") == 0 && !is_virtual) 60 if (strcasecmp (mailbox_name, "INBOX") == 0 && !mu_virtual_domain)
61 { 61 {
62 pw = getpwuid (getuid ()); 62 pw = getpwuid (getuid ());
63 if (pw) 63 if (pw)
......
...@@ -45,7 +45,7 @@ imap4d_status (struct imap4d_command *command, char *arg) ...@@ -45,7 +45,7 @@ imap4d_status (struct imap4d_command *command, char *arg)
45 if (!name || *name == '\0' || !sp || *sp == '\0') 45 if (!name || *name == '\0' || !sp || *sp == '\0')
46 return util_finish (command, RESP_BAD, "Too few args"); 46 return util_finish (command, RESP_BAD, "Too few args");
47 47
48 if (strcasecmp (name, "INBOX") == 0 && !is_virtual) 48 if (strcasecmp (name, "INBOX") == 0 && !mu_virtual_domain)
49 { 49 {
50 struct passwd *pw = getpwuid (getuid()); 50 struct passwd *pw = getpwuid (getuid());
51 mailbox_name = strdup ((pw) ? pw->pw_name : ""); 51 mailbox_name = strdup ((pw) ? pw->pw_name : "");
......