aboutsummaryrefslogtreecommitdiffstats
path: root/camel/camel-folder-summary.c
diff options
context:
space:
mode:
authorEttore Perazzoli <ettore@src.gnome.org>2000-07-06 03:42:32 +0800
committerEttore Perazzoli <ettore@src.gnome.org>2000-07-06 03:42:32 +0800
commit0837fc409943cafbf57dcd51525b9b7f68148639 (patch)
treebce40c01ff35049703f704e01f09262818e74f87 /camel/camel-folder-summary.c
parent095903c7d3c4028aec99f4cdc23149e1fed81fa6 (diff)
downloadgsoc2013-evolution-0837fc409943cafbf57dcd51525b9b7f68148639.tar
gsoc2013-evolution-0837fc409943cafbf57dcd51525b9b7f68148639.tar.gz
gsoc2013-evolution-0837fc409943cafbf57dcd51525b9b7f68148639.tar.bz2
gsoc2013-evolution-0837fc409943cafbf57dcd51525b9b7f68148639.tar.lz
gsoc2013-evolution-0837fc409943cafbf57dcd51525b9b7f68148639.tar.xz
gsoc2013-evolution-0837fc409943cafbf57dcd51525b9b7f68148639.tar.zst
gsoc2013-evolution-0837fc409943cafbf57dcd51525b9b7f68148639.zip
Fix the "clashing UIDs are not updated on disk" problem by syncing
back to disk even if the saved UID does not match the in-memory UID and added some debugging messages. Also, make sure the UID we use for Ibex stuff is the new one when changing UIDs to solve a clashing problem. svn path=/trunk/; revision=3892
Diffstat (limited to 'camel/camel-folder-summary.c')
-rw-r--r--camel/camel-folder-summary.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/camel/camel-folder-summary.c b/camel/camel-folder-summary.c
index 2bb7ca2a74..027984e7ef 100644
--- a/camel/camel-folder-summary.c
+++ b/camel/camel-folder-summary.c
@@ -421,7 +421,7 @@ retry:
info->uid = camel_folder_summary_next_uid_string (s);
}
if (g_hash_table_lookup(s->messages_uid, info->uid)) {
- g_warning("Trying to insert message with clashing uid. new uid re-assigned");
+ g_warning("Trying to insert message with clashing uid (%s). new uid re-assigned", info->uid);
g_free(info->uid);
info->uid = NULL;
info->flags |= CAMEL_MESSAGE_FOLDER_FLAGGED;
@@ -457,10 +457,7 @@ CamelMessageInfo *camel_folder_summary_add_from_parser(CamelFolderSummary *s, Ca
camel_mime_parser_unstep(mp);
- /* FIXME: better uid assignment method? */
- if (info->uid == NULL) {
- info->uid = camel_folder_summary_next_uid_string (s);
- }
+ camel_folder_summary_add(s, info);
if (p->index) {
if (p->filter_index == NULL)
@@ -477,8 +474,6 @@ CamelMessageInfo *camel_folder_summary_add_from_parser(CamelFolderSummary *s, Ca
} else {
camel_mime_parser_drop_step(mp);
}
-
- camel_folder_summary_add(s, info);
}
return info;
}