Mercurial > dovecot > core-2.2
changeset 3281:bbb22ca660e0 HEAD
Since we always parse the first message now, there's no need ever to do
sync_restart.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Fri, 08 Apr 2005 18:08:53 +0300 |
parents | 2c72492dfd91 |
children | 6d5f47f5b05b |
files | src/lib-storage/index/mbox/mbox-sync-parse.c src/lib-storage/index/mbox/mbox-sync-private.h src/lib-storage/index/mbox/mbox-sync.c |
diffstat | 3 files changed, 0 insertions(+), 11 deletions(-) [+] |
line wrap: on
line diff
--- a/src/lib-storage/index/mbox/mbox-sync-parse.c Fri Apr 08 17:32:49 2005 +0300 +++ b/src/lib-storage/index/mbox/mbox-sync-parse.c Fri Apr 08 18:08:53 2005 +0300 @@ -459,9 +459,6 @@ if (!func->func(ctx, hdr)) { /* this header is broken, remove it */ - if (ctx->sync_ctx->sync_restart) - break; - ctx->need_rewrite = TRUE; str_truncate(ctx->header, line_start_pos); if (ctx->header_first_change == (size_t)-1) {
--- a/src/lib-storage/index/mbox/mbox-sync-private.h Fri Apr 08 17:32:49 2005 +0300 +++ b/src/lib-storage/index/mbox/mbox-sync-private.h Fri Apr 08 18:08:53 2005 +0300 @@ -118,7 +118,6 @@ off_t expunged_space, space_diff; unsigned int dest_first_mail:1; - unsigned int sync_restart:1; /* global flags: */ unsigned int delay_writes:1;
--- a/src/lib-storage/index/mbox/mbox-sync.c Fri Apr 08 17:32:49 2005 +0300 +++ b/src/lib-storage/index/mbox/mbox-sync.c Fri Apr 08 18:08:53 2005 +0300 @@ -118,9 +118,6 @@ i_assert(sync_ctx->input->v_offset != mail_ctx->mail.from_offset || sync_ctx->input->eof); - if (sync_ctx->sync_restart) - return 0; - mail_ctx->mail.body_size = istream_raw_mbox_get_body_size(sync_ctx->input, mail_ctx->content_length); @@ -1059,9 +1056,6 @@ } } - if (sync_ctx->sync_restart) - return 0; - if (istream_raw_mbox_is_eof(sync_ctx->input)) { /* rest of the messages in index don't exist -> expunge them */ while (sync_ctx->idx_seq <= messages_count) @@ -1288,7 +1282,6 @@ sync_ctx->space_diff = 0; sync_ctx->dest_first_mail = TRUE; - sync_ctx->sync_restart = FALSE; } static int mbox_sync_do(struct mbox_sync_context *sync_ctx,