diff options
author | Sergey Poznyakoff <gray@gnu.org.ua> | 2006-01-25 16:51:40 +0000 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org.ua> | 2006-01-25 16:51:40 +0000 |
commit | 778a6714dec9a7a570471d7fb3ce4cc1004bb19d (patch) | |
tree | be8754c3ee929d3d1310478d209b6fdb0c9ada81 /imap4d | |
parent | 661108c7d8868f4e53cb2968b1c3e232815bc75f (diff) | |
download | mailutils-778a6714dec9a7a570471d7fb3ce4cc1004bb19d.tar.gz mailutils-778a6714dec9a7a570471d7fb3ce4cc1004bb19d.tar.bz2 |
(imap4d_select0): Create INBOX if it does not exist.
Diffstat (limited to 'imap4d')
-rw-r--r-- | imap4d/select.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/imap4d/select.c b/imap4d/select.c index a34c2d3ee..b2c1a8622 100644 --- a/imap4d/select.c +++ b/imap4d/select.c @@ -55,6 +55,8 @@ imap4d_select0 (struct imap4d_command *command, char *arg, int flags) imap4d_sync (); } + if (strcmp (mailbox_name, "INBOX") == 0) + flags |= MU_STREAM_CREAT; mailbox_name = namespace_getfullpath (mailbox_name, "/"); if (!mailbox_name) |