aboutsummaryrefslogtreecommitdiffstats
path: root/mail/mail-ops.c
diff options
context:
space:
mode:
authorFridrich Strba <FStrba@novell.com>2009-05-04 13:18:31 +0800
committerBharath Acharya <abharath@novell.com>2009-05-04 13:18:31 +0800
commitf4ecf2d62fd8766fa0b0c7d6483d9a583459267c (patch)
tree2b86f2c18979c8310af759dbab98c1d36d1b8274 /mail/mail-ops.c
parentfcb97c2bd7c70c711e4ca201eacb871a34a07bf7 (diff)
downloadgsoc2013-evolution-f4ecf2d62fd8766fa0b0c7d6483d9a583459267c.tar
gsoc2013-evolution-f4ecf2d62fd8766fa0b0c7d6483d9a583459267c.tar.gz
gsoc2013-evolution-f4ecf2d62fd8766fa0b0c7d6483d9a583459267c.tar.bz2
gsoc2013-evolution-f4ecf2d62fd8766fa0b0c7d6483d9a583459267c.tar.lz
gsoc2013-evolution-f4ecf2d62fd8766fa0b0c7d6483d9a583459267c.tar.xz
gsoc2013-evolution-f4ecf2d62fd8766fa0b0c7d6483d9a583459267c.tar.zst
gsoc2013-evolution-f4ecf2d62fd8766fa0b0c7d6483d9a583459267c.zip
Assure that the filename <-> uri conversion are done with g_filename_{to,from}_uri and not by concatenating strings which is broken with win32-style uris
Diffstat (limited to 'mail/mail-ops.c')
-rw-r--r--mail/mail-ops.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/mail/mail-ops.c b/mail/mail-ops.c
index 0eb6c9414c..a8aa14d278 100644
--- a/mail/mail-ops.c
+++ b/mail/mail-ops.c
@@ -2062,7 +2062,7 @@ save_messages_exec (struct _save_messages_msg *m)
if (strstr (m->path, "://"))
path = m->path;
else
- path = g_strjoin (NULL, "file://", m->path, NULL);
+ path = g_filename_to_uri (m->path, NULL, NULL);
stream = camel_stream_vfs_new_with_uri (path, CAMEL_STREAM_VFS_CREATE);
from_filter = camel_mime_filter_from_new();
@@ -2176,7 +2176,7 @@ save_part_exec (struct _save_part_msg *m)
if (strstr (m->path, "://"))
path = m->path;
else
- path = g_strjoin (NULL, "file://", m->path, NULL);
+ path = g_filename_to_uri (m->path, NULL, NULL);
if(!m->readonly){
if (!(stream = camel_stream_vfs_new_with_uri (path, CAMEL_STREAM_VFS_CREATE))) {