0.9.10claws5
[claws.git] / src / imap.c
index cec5ec158318323999310af5e778145d91b1cea1..def44b3c364c376ff93f8ed21b0e8de33ad1acea 100644 (file)
@@ -1717,6 +1717,12 @@ static gint imap_rename_folder(Folder *folder, FolderItem *item,
        g_return_val_if_fail(item->path != NULL, -1);
        g_return_val_if_fail(name != NULL, -1);
 
+       if (strchr(name, imap_get_path_separator(folder, item->path)) != NULL) {
+               g_warning(_("New folder name must not contain the namespace "
+                           "path seperator"));
+               return -1;
+       }
+
        session = imap_session_get(folder);
        if (!session) return -1;