From bfe8bdc96894ea7a2439aa3cfade93a262dd96aa Mon Sep 17 00:00:00 2001 From: NotZed Date: Tue, 2 May 2000 17:36:32 +0000 Subject: [PATCH] Fix the offset for the summary when an item is expunged to take account of 2000-05-02 NotZed * providers/mbox/camel-mbox-summary.c (camel_mbox_summary_expunge): Fix the offset for the summary when an item is expunged to take account of the From line. --- camel/ChangeLog | 6 ++++++ camel/providers/mbox/camel-mbox-summary.c | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/camel/ChangeLog b/camel/ChangeLog index 4ed6f01..8499c97 100644 --- a/camel/ChangeLog +++ b/camel/ChangeLog @@ -1,3 +1,9 @@ +2000-05-02 NotZed + + * providers/mbox/camel-mbox-summary.c + (camel_mbox_summary_expunge): Fix the offset for the summary when + an item is expunged to take account of the From line. + 2000-05-01 NotZed * providers/mbox/camel-mbox-folder.h (CamelMboxFolder): Removed diff --git a/camel/providers/mbox/camel-mbox-summary.c b/camel/providers/mbox/camel-mbox-summary.c index 754f211..35b7945 100644 --- a/camel/providers/mbox/camel-mbox-summary.c +++ b/camel/providers/mbox/camel-mbox-summary.c @@ -1423,9 +1423,9 @@ camel_mbox_summary_expunge(CamelMboxSummary *s) if (info->info.flags & CAMEL_MESSAGE_DELETED) { printf("Deleting message: %s\n", info->info.uid); camel_mbox_summary_copy_block(fd, fdout, last_write, last_start-last_write); + offset += (content->endpos - last_start); last_write = content->endpos; last_start = last_write; - offset += (content->endpos - content->pos); /* remove this message from the index */ if (s->index) { -- 2.7.4