aboutsummaryrefslogtreecommitdiffstats
path: root/mail/mail-config.c
diff options
context:
space:
mode:
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);
}