From ae69e481084c8525d00dd365f452bbc1952372ea Mon Sep 17 00:00:00 2001 From: Antoine Nguyen Date: Fri, 31 Jan 2014 14:34:07 +0100 Subject: [PATCH 1/2] Don't hardcode mailbox delimiter! fix #518 --- modoboa/extensions/webmail/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modoboa/extensions/webmail/views.py b/modoboa/extensions/webmail/views.py index b7482d71c..730a1e4d3 100644 --- a/modoboa/extensions/webmail/views.py +++ b/modoboa/extensions/webmail/views.py @@ -184,7 +184,7 @@ def editfolder(request, tplname="webmail/folder.html"): if form.cleaned_data["name"] != oldname \ or (pf != oldparent): newname = form.cleaned_data["name"] if pf is None \ - else "%s.%s" % (pf, form.cleaned_data["name"]) + else mbc.hdelimiter.join([pf, form.cleaned_data["name"]]) mbc.rename_folder(request.POST["oldname"], newname) res["oldmb"] = oldname res["newmb"] = form.cleaned_data["name"] From 3230bcc6521a7d6821c43baedcf062d7e0edad54 Mon Sep 17 00:00:00 2001 From: Antoine Nguyen Date: Wed, 5 Feb 2014 14:35:36 +0100 Subject: [PATCH 2/2] Don't forget to give the URL... fix #520 --- modoboa/extensions/webmail/static/webmail/css/attachments.css | 2 +- modoboa/extensions/webmail/static/webmail/js/webmail.js | 2 +- modoboa/extensions/webmail/templates/webmail/index.html | 1 + 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/modoboa/extensions/webmail/static/webmail/css/attachments.css b/modoboa/extensions/webmail/static/webmail/css/attachments.css index f08061b64..b4c0de430 100644 --- a/modoboa/extensions/webmail/static/webmail/css/attachments.css +++ b/modoboa/extensions/webmail/static/webmail/css/attachments.css @@ -37,4 +37,4 @@ div.row label { #id_attachment { width: 290px; -} \ No newline at end of file +} diff --git a/modoboa/extensions/webmail/static/webmail/js/webmail.js b/modoboa/extensions/webmail/static/webmail/js/webmail.js index ace4ba0ba..110b8c6ef 100644 --- a/modoboa/extensions/webmail/static/webmail/js/webmail.js +++ b/modoboa/extensions/webmail/static/webmail/js/webmail.js @@ -945,7 +945,7 @@ Webmail.prototype = { html: "" }); var $label = $("