On 2000-06-21 13:37:45 +0200, Thomas Roessler wrote:
> *sigh* I hoped to have that one fixed. At least, it
> appeared to be from my own tests.
Please try the attached patch. The error I made was
incredibly stupid.
Index: mbox.c
===================================================================
RCS file: /home/roessler/cvsroot/mutt/mbox.c,v
retrieving revision 2.17
diff -u -r2.17 mbox.c
--- mbox.c 2000/06/08 21:44:14 2.17
+++ mbox.c 2000/06/21 11:46:43
@@ -775,6 +775,17 @@
for (i = first, j = 0; i < ctx->msgcount; i++)
{
+ /*
+ * back up some information which is needed to restore offsets when
+ * something fails.
+ */
+
+ oldOffset[i-first].valid = 1;
+ oldOffset[i-first].hdr = ctx->hdrs[i]->offset;
+ oldOffset[i-first].body = ctx->hdrs[i]->content->offset;
+ oldOffset[i-first].lines = ctx->hdrs[i]->lines;
+ oldOffset[i-first].length = ctx->hdrs[i]->content->length;
+
if (! ctx->hdrs[i]->deleted)
{
j++;
@@ -804,17 +815,6 @@
}
}
- /*
- * back up some information which is needed to restore offsets when
- * something fails.
- */
-
- oldOffset[i-first].valid = 1;
- oldOffset[i-first].hdr = ctx->hdrs[i]->offset;
- oldOffset[i-first].body = ctx->hdrs[i]->content->offset;
- oldOffset[i-first].lines = ctx->hdrs[i]->lines;
- oldOffset[i-first].length = ctx->hdrs[i]->content->length;
-
/* save the new offset for this message. we add `offset' because the
* temporary file only contains saved message which are located after
* `offset' in the real mailbox