diff options
author | NotZed <NotZed@HelixCode.com> | 2000-05-17 12:08:41 +0800 |
---|---|---|
committer | Michael Zucci <zucchi@src.gnome.org> | 2000-05-17 12:08:41 +0800 |
commit | 07f1218fa41afb5c737b80cb036abdcdf4c42534 (patch) | |
tree | 5612f11ec211c2cdbf9ff5e6a63b54190b032318 /camel/providers/mbox/camel-mbox-summary.c | |
parent | 464b02c84709394ad80a9f4d3d18d3105a852d84 (diff) | |
download | gsoc2013-evolution-07f1218fa41afb5c737b80cb036abdcdf4c42534.tar.gz gsoc2013-evolution-07f1218fa41afb5c737b80cb036abdcdf4c42534.tar.zst gsoc2013-evolution-07f1218fa41afb5c737b80cb036abdcdf4c42534.zip |
Implement.
2000-05-16 NotZed <NotZed@HelixCode.com>
* providers/mbox/camel-mbox-folder.c (mbox_delete_message_by_uid):
Implement.
2000-05-12 NotZed <NotZed@HelixCode.com>
* camel-movemail.c (camel_movemail): Open the destination with
O_APPEND, so we dont blow away a partially transferred mbox.
(camel_movemail): Loop if we get errno=INTR, and not fail.
svn path=/trunk/; revision=3100
Diffstat (limited to 'camel/providers/mbox/camel-mbox-summary.c')
-rw-r--r-- | camel/providers/mbox/camel-mbox-summary.c | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/camel/providers/mbox/camel-mbox-summary.c b/camel/providers/mbox/camel-mbox-summary.c index 56ff1cb198..dac2694f4c 100644 --- a/camel/providers/mbox/camel-mbox-summary.c +++ b/camel/providers/mbox/camel-mbox-summary.c @@ -299,6 +299,7 @@ summary_rebuild(CamelMboxSummary *mbs, off_t offset) } else { gtk_object_unref((GtkObject *)mp); /* end of file - no content? */ + printf("We radn out of file?\n"); return 0; } } @@ -308,6 +309,7 @@ summary_rebuild(CamelMboxSummary *mbs, off_t offset) info = camel_folder_summary_add_from_parser((CamelFolderSummary *)mbs, mp); if (info == NULL) { + printf("Could not build info from file?\n"); ok = -1; break; } @@ -315,6 +317,10 @@ summary_rebuild(CamelMboxSummary *mbs, off_t offset) g_assert(camel_mime_parser_step(mp, NULL, NULL) == HSCAN_FROM_END); } + /* update the file size in the summary */ + if (ok != -1) + mbs->folder_size = camel_mime_parser_seek(mp, 0, SEEK_CUR); + printf("updating folder size = %d\n", mbs->folder_size); gtk_object_unref((GtkObject *)mp); return ok; @@ -631,7 +637,7 @@ camel_mbox_summary_expunge(CamelMboxSummary *mbs) } xevok = TRUE; } - xevnew = header_evolution_encode(strtoul(info->info.uid, NULL, 10), info->info.flags); + xevnew = header_evolution_encode(strtoul(info->info.uid, NULL, 10), info->info.flags & 0xffff); if (quick) { if (!xevok) { g_error("The summary told me I had an X-Evolution header, but i dont!"); @@ -664,6 +670,7 @@ camel_mbox_summary_expunge(CamelMboxSummary *mbs) info->frompos = frompos; offset = bodypos - info->info.content->bodypos; } + info->info.flags &= 0xffff; g_free(xevnew); xevnew = NULL; camel_mime_parser_drop_step(mp); camel_mime_parser_drop_step(mp); @@ -703,7 +710,7 @@ camel_mbox_summary_expunge(CamelMboxSummary *mbs) if (stat(mbs->folder_path, &st) == -1) goto error; - s->flags |= CAMEL_SUMMARY_DIRTY; + camel_folder_summary_touch(s); s->time = st.st_mtime; mbs->folder_size = st.st_size; camel_folder_summary_save(s); |