aboutsummaryrefslogtreecommitdiffstats
path: root/camel/providers/imap/camel-imap-store.c
diff options
context:
space:
mode:
authorNot Zed <NotZed@Ximian.com>2002-02-08 10:10:46 +0800
committerMichael Zucci <zucchi@src.gnome.org>2002-02-08 10:10:46 +0800
commitd56ec225b805cb7a071d10adf99a93979cb3d0e7 (patch)
tree8888dc6007f3d7d8b8af5c51c0f4bf2936918491 /camel/providers/imap/camel-imap-store.c
parent92d7dbf6cea9dc43bd55e353c9b38315791a6317 (diff)
downloadgsoc2013-evolution-d56ec225b805cb7a071d10adf99a93979cb3d0e7.tar
gsoc2013-evolution-d56ec225b805cb7a071d10adf99a93979cb3d0e7.tar.gz
gsoc2013-evolution-d56ec225b805cb7a071d10adf99a93979cb3d0e7.tar.bz2
gsoc2013-evolution-d56ec225b805cb7a071d10adf99a93979cb3d0e7.tar.lz
gsoc2013-evolution-d56ec225b805cb7a071d10adf99a93979cb3d0e7.tar.xz
gsoc2013-evolution-d56ec225b805cb7a071d10adf99a93979cb3d0e7.tar.zst
gsoc2013-evolution-d56ec225b805cb7a071d10adf99a93979cb3d0e7.zip
The day number has to be 2 chars wide, space filled to work properly with
2002-02-08 Not Zed <NotZed@Ximian.com> * providers/local/camel-spool-summary.c (camel_spool_summary_build_from): The day number has to be 2 chars wide, space filled to work properly with pine, etc. * providers/local/camel-spoold-store.[ch]: new type of provider 'spool directory', which lets you view external mbox dirs without adding any extra cruft. Perhaps it should use . files to store summaries? Still a bit experimental, there's a warning when you select it in the account editor. Finished off most of #1185. Can't rename or move folders. * camel-mime-utils.c (header_decode_date): If the date is 100->1900 then we actually want to use it as the year in the tm struct, not year+100. e.g. year 102 -> 2002, not 2102. 2002-02-07 Not Zed <NotZed@Ximian.com> * providers/local/camel-spool-store.c (get_folder): Pass path into spool_folder_new. * providers/local/camel-spool-folder.c (camel_spool_folder_new): (camel_spool_folder_construct): Take the full path to the folder and use that as the file path, independent of the full_name we use. 2002-02-07 Not Zed <NotZed@Ximian.com> * providers/local/camel-local-provider.c: Added new type, spoold provider, spoold: for local directories. * providers/imap/camel-imap-store.c (get_one_folder_offline): Create offline uri's in a compatible manner to online ones. svn path=/trunk/; revision=15606
Diffstat (limited to 'camel/providers/imap/camel-imap-store.c')
-rw-r--r--camel/providers/imap/camel-imap-store.c14
1 files changed, 9 insertions, 5 deletions
diff --git a/camel/providers/imap/camel-imap-store.c b/camel/providers/imap/camel-imap-store.c
index 4b3855e73f..8253e3bdb9 100644
--- a/camel/providers/imap/camel-imap-store.c
+++ b/camel/providers/imap/camel-imap-store.c
@@ -1552,7 +1552,7 @@ get_folder_info_online (CamelStore *store, const char *top,
g_ptr_array_free (folders, TRUE);
return NULL;
}
-
+
/* Add INBOX, if necessary */
if (need_inbox) {
for (i = 0; i < folders->len; i++) {
@@ -1582,7 +1582,7 @@ get_folder_info_online (CamelStore *store, const char *top,
g_ptr_array_add (folders, fi);
}
}
-
+
/* Assemble. */
tree = camel_folder_info_build (folders, name, imap_store->dir_sep, TRUE);
if (flags & CAMEL_STORE_FOLDER_INFO_FAST) {
@@ -1643,19 +1643,23 @@ get_one_folder_offline (const char *physical_path, const char *path, gpointer da
GPtrArray *folders = data;
CamelImapStore *imap_store = folders->pdata[0];
CamelFolderInfo *fi;
+ CamelURL *url;
- if (*path++ != '/')
+ if (*path != '/')
return TRUE;
fi = g_new0 (CamelFolderInfo, 1);
- fi->full_name = g_strdup (path);
+ fi->full_name = g_strdup (path+1);
fi->name = strrchr (fi->full_name, imap_store->dir_sep);
if (fi->name)
fi->name = g_strdup (fi->name + 1);
else
fi->name = g_strdup (fi->full_name);
- fi->url = g_strdup_printf ("%s/%s", imap_store->base_url, path);
+ url = camel_url_new(imap_store->base_url, NULL);
+ camel_url_set_path(url, path);
+ fi->url = camel_url_to_string(url, 0);
+ camel_url_free(url);
/* FIXME: check summary */
fi->unread_message_count = -1;