|
|
@ -2637,11 +2637,17 @@ function rcube_webmail()
|
|
|
|
// delete a specific mailbox with all its messages
|
|
|
|
// delete a specific mailbox with all its messages
|
|
|
|
this.delete_folder = function(folder)
|
|
|
|
this.delete_folder = function(folder)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
if (this.edit_folder)
|
|
|
|
if (this.edit_folder)
|
|
|
|
this.reset_folder_rename();
|
|
|
|
this.reset_folder_rename();
|
|
|
|
|
|
|
|
|
|
|
|
if (folder)
|
|
|
|
if (folder)
|
|
|
|
|
|
|
|
{
|
|
|
|
this.http_post('delete-folder', '_mboxes='+urlencode(folder));
|
|
|
|
this.http_post('delete-folder', '_mboxes='+urlencode(folder));
|
|
|
|
|
|
|
|
var folders = new Array(folder);
|
|
|
|
|
|
|
|
for (var row in this.env.subscriptionrows)
|
|
|
|
|
|
|
|
if (this.env.subscriptionrows[row][0].match(new RegExp('^'+RegExp.escape(folder+this.env.delimiter))))
|
|
|
|
|
|
|
|
this.http_post('delete-folder', '_mboxes='+urlencode(this.env.subscriptionrows[row][0]));
|
|
|
|
|
|
|
|
}
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|