Commit 778a6714 778a6714dec9a7a570471d7fb3ce4cc1004bb19d by Sergey Poznyakoff

(imap4d_select0): Create INBOX if it does not exist.

1 parent 661108c7
...@@ -55,6 +55,8 @@ imap4d_select0 (struct imap4d_command *command, char *arg, int flags) ...@@ -55,6 +55,8 @@ imap4d_select0 (struct imap4d_command *command, char *arg, int flags)
55 imap4d_sync (); 55 imap4d_sync ();
56 } 56 }
57 57
58 if (strcmp (mailbox_name, "INBOX") == 0)
59 flags |= MU_STREAM_CREAT;
58 mailbox_name = namespace_getfullpath (mailbox_name, "/"); 60 mailbox_name = namespace_getfullpath (mailbox_name, "/");
59 61
60 if (!mailbox_name) 62 if (!mailbox_name)
......