Mercurial > dovecot > original-hg > dovecot-1.2
comparison src/imap/cmd-create.c @ 6298:f5782901930b HEAD
CREATE ns_prefix/box/ didn't work right when namespace prefix existed.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Tue, 14 Aug 2007 22:46:29 +0300 |
parents | 4862cb37106c |
children | 65c69a53a7be |
comparison
equal
deleted
inserted
replaced
6297:3f6fadbe6888 | 6298:f5782901930b |
---|---|
26 else { | 26 else { |
27 /* name ends with hierarchy separator - client is just | 27 /* name ends with hierarchy separator - client is just |
28 informing us that it wants to create children under this | 28 informing us that it wants to create children under this |
29 mailbox. */ | 29 mailbox. */ |
30 directory = TRUE; | 30 directory = TRUE; |
31 mailbox = t_strndup(mailbox, len-1); | 31 mailbox = t_strndup(mailbox, strlen(mailbox)-1); |
32 full_mailbox = t_strndup(full_mailbox, strlen(full_mailbox)-1); | 32 full_mailbox = t_strndup(full_mailbox, len-1); |
33 } | 33 } |
34 | 34 |
35 if (!client_verify_mailbox_name(cmd, full_mailbox, FALSE, TRUE)) | 35 if (!client_verify_mailbox_name(cmd, full_mailbox, FALSE, TRUE)) |
36 return TRUE; | 36 return TRUE; |
37 | 37 |