aboutsummaryrefslogtreecommitdiffstats
path: root/mail/mail-tools.c
diff options
context:
space:
mode:
Diffstat (limited to 'mail/mail-tools.c')
-rw-r--r--mail/mail-tools.c14
1 files changed, 10 insertions, 4 deletions
diff --git a/mail/mail-tools.c b/mail/mail-tools.c
index d5966a8993..c6cb3c9685 100644
--- a/mail/mail-tools.c
+++ b/mail/mail-tools.c
@@ -266,10 +266,16 @@ mail_tool_uri_to_folder (const char *uri, CamelException *ex)
if (store) {
char *name;
- if (url->path && *url->path)
- name = url->path + 1;
- else
- name = "";
+ /* if we have a fragment, then the path is actually used by the store,
+ so the fragment is the path to the folder instead */
+ if (url->fragment) {
+ name = url->fragment;
+ } else {
+ if (url->path && *url->path)
+ name = url->path + 1;
+ else
+ name = "";
+ }
if (offset)
folder = camel_store_get_trash (store, ex);
e09'>- Get rid FreeBSD 6 supportmiwi2011-11-071-4/+0 * -remove MD5ohauer2011-07-031-1/+0 * Sync to new bsd.autotools.mkade2010-12-041-1/+1 * - Switch SourceForge ports to the new File Release System: categories startin...amdmi32009-08-221-1/+2 * -Repocopy devel/libtool15 -> libtool22 and libltdl15 -> libltdl22.mezz2009-08-031-1/+1 * - Use my FreeBSD address on the ports I maintaindhn2009-03-071-1/+1 * - Update to 5.0.2miwi2009-01-112-5/+5 * - Update to 5.0.1wxs2009-01-063-8/+8 * - Mark borken on 6.xchinsan2008-09-041-0/+4 * - Update to 5.0.0chinsan2008-08-314-29/+23