aboutsummaryrefslogtreecommitdiffstats
path: root/mail/mail-config.c
diff options
context:
space:
mode:
authorDan Winship <danw@src.gnome.org>2000-07-28 07:10:04 +0800
committerDan Winship <danw@src.gnome.org>2000-07-28 07:10:04 +0800
commit1bf9e439824ee6a2aa721aa05859200da89cbc9b (patch)
tree4cf1a0858160b535c4f1945fe2bc0664aaa879a6 /mail/mail-config.c
parent4a4c22b8e13922b35937690dca168819b411df2d (diff)
downloadgsoc2013-evolution-1bf9e439824ee6a2aa721aa05859200da89cbc9b.tar.gz
gsoc2013-evolution-1bf9e439824ee6a2aa721aa05859200da89cbc9b.tar.zst
gsoc2013-evolution-1bf9e439824ee6a2aa721aa05859200da89cbc9b.zip
toss in a kludge to deal with the IMAP vs mbox path problem for now.
* mail-config.c (get_service_url): toss in a kludge to deal with the IMAP vs mbox path problem for now. svn path=/trunk/; revision=4399
Diffstat (limited to 'mail/mail-config.c')
-rw-r--r--mail/mail-config.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/mail/mail-config.c b/mail/mail-config.c
index f05c526a77..1375a75012 100644
--- a/mail/mail-config.c
+++ b/mail/mail-config.c
@@ -506,7 +506,10 @@ get_service_url (GtkObject *table)
editable = gtk_object_get_data (table, "path_entry");
if (editable) {
char *path = gtk_editable_get_chars (editable, 0, -1);
- url->path = g_strdup_printf ("/%s", path);
+ /* FIXME. I am a kludge. */
+ url->path = g_strdup_printf (
+ "%s%s", !strcmp (url->protocol, "imap") ? "/" : "",
+ path);
g_free (path);
}