Searched refs:from_offset (Results 1 - 4 of 4) sorted by relevance

/dovecot/src/lib-storage/index/mbox/
H A Dmbox-sync-rewrite.c366 if (mails[idx].from_offset +
368 sync_ctx->dest_first_mail = mails[idx].from_offset == 0;
373 mails[idx].from_offset += first_mail_expunge_extra;
412 if (mbox_sync_seek(sync_ctx, mails[idx].from_offset) < 0)
447 i_assert(mails[idx].from_offset >= expunged_space);
448 if (mbox_move(sync_ctx, mails[idx].from_offset - expunged_space,
449 mails[idx].from_offset,
450 mails[idx].offset - mails[idx].from_offset) < 0)
476 i_assert(dest_offset >= mails[idx].from_offset - expunged_space);
525 start_offset = mails[0].from_offset;
[all...]
H A Distream-raw-mbox.c15 uoff_t from_offset, hdr_offset, body_offset, mail_size; member in struct:raw_mbox_istream
51 /* from_offset points to "\nFrom ", so unless we're at the beginning
53 if (rstream->from_offset == 0)
93 if (rstream->istream.istream.v_offset == rstream->from_offset) {
173 i_assert(stream->istream.v_offset >= rstream->from_offset);
235 if (stream->istream.v_offset == rstream->from_offset) {
247 if (stream->istream.v_offset == rstream->from_offset) {
511 return rstream->from_offset;
522 if (rstream->hdr_offset == rstream->from_offset)
528 rstream->from_offset);
[all...]
H A Dmbox-sync.c86 int mbox_sync_seek(struct mbox_sync_context *sync_ctx, uoff_t from_offset) argument
88 if (istream_raw_mbox_seek(sync_ctx->input, from_offset) < 0) {
91 from_offset);
145 mail_ctx->mail.from_offset =
158 i_assert(sync_ctx->input->v_offset != mail_ctx->mail.from_offset ||
290 /* see if from_offset needs updating */
295 *((const uint64_t *)data) == mail->from_offset)
299 offset = mail->from_offset;
493 from_line_size = ctx->hdr_offset - ctx->mail.from_offset;
495 i_stream_seek(input, ctx->mail.from_offset);
[all...]
H A Dmbox-sync-private.h58 uoff_t from_offset; member in struct:mbox_sync_mail
173 int mbox_sync_seek(struct mbox_sync_context *sync_ctx, uoff_t from_offset);

Completed in 108 milliseconds