diff options
author | Not Zed <NotZed@HelixCode.com> | 2000-08-08 11:42:47 +0800 |
---|---|---|
committer | Michael Zucci <zucchi@src.gnome.org> | 2000-08-08 11:42:47 +0800 |
commit | a7943ce5a42ef266579e60ce272c9ee3f547be03 (patch) | |
tree | 666f8f813f3cf48449bb155b577462f011377f21 /camel/providers/mh/camel-mh-summary.c | |
parent | ac94f697a5cf1842244984a4c1d2859118916aa2 (diff) | |
download | gsoc2013-evolution-a7943ce5a42ef266579e60ce272c9ee3f547be03.tar gsoc2013-evolution-a7943ce5a42ef266579e60ce272c9ee3f547be03.tar.gz gsoc2013-evolution-a7943ce5a42ef266579e60ce272c9ee3f547be03.tar.bz2 gsoc2013-evolution-a7943ce5a42ef266579e60ce272c9ee3f547be03.tar.lz gsoc2013-evolution-a7943ce5a42ef266579e60ce272c9ee3f547be03.tar.xz gsoc2013-evolution-a7943ce5a42ef266579e60ce272c9ee3f547be03.tar.zst gsoc2013-evolution-a7943ce5a42ef266579e60ce272c9ee3f547be03.zip |
Only retry another uid if we had a name clash, otherwise fail.
2000-08-07 Not Zed <NotZed@HelixCode.com>
* providers/mh/camel-mh-folder.c (mh_append_message): Only retry
another uid if we had a name clash, otherwise fail.
2000-08-04 Not Zed <NotZed@HelixCode.com>
* camel-url.c (camel_url_set_protocol):
(camel_url_set_host):
(camel_url_set_path):
(camel_url_set_port): Url editing functions.
2000-08-02 Not Zed <NotZed@HelixCode.com>
* providers/mh/camel-mh-summary.c (camel_mh_summary_sync): Expunge
from the end, so the index isn't messed up when you remove a
message.
* providers/mh/camel-mh-folder.c (mh_append_message): Fix a bug
where it would never open an output file/uid.
* providers/mbox/camel-mbox-store.c (rename_folder):
Implementation for mbox as well.
* camel-store.c (camel_store_rename_folder): New method to rename folders.
(rename_folder): Default implementation.
* providers/mh/camel-mh-store.c (delete_folder): Implement this.
(rename_folder): Implement a rename operation.
svn path=/trunk/; revision=4590
Diffstat (limited to 'camel/providers/mh/camel-mh-summary.c')
-rw-r--r-- | camel/providers/mh/camel-mh-summary.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/camel/providers/mh/camel-mh-summary.c b/camel/providers/mh/camel-mh-summary.c index 83f2113445..36bfd2f2cf 100644 --- a/camel/providers/mh/camel-mh-summary.c +++ b/camel/providers/mh/camel-mh-summary.c @@ -258,15 +258,17 @@ int camel_mh_summary_sync(CamelMhSummary * mhs, int expunge, CamelException *ex CamelMessageInfo *info; char *name; + printf("summary_sync(expunge=%s)\n", expunge?"true":"false"); + if (!expunge) return 0; count = camel_folder_summary_count((CamelFolderSummary *)mhs); - for (i=0;i<count;i++) { + for (i=count-1;i>=0;i--) { info = camel_folder_summary_index((CamelFolderSummary *)mhs, i); if (info && info->flags & CAMEL_MESSAGE_DELETED) { name = g_strdup_printf("%s/%s", mhs->mh_path, info->uid); - d(printf("deleting %s\n", name)); + (printf("deleting %s\n", name)); if (unlink(name) == 0 || errno==ENOENT) { camel_folder_summary_remove((CamelFolderSummary *)mhs, info); } |