Mercurial > dovecot > original-hg > dovecot-1.2
diff src/lib-index/mbox/mbox-rewrite.c @ 817:86cf24da85f1 HEAD
Added :INDEX=<dir> for both Maildir and mbox to specify different location
where to store index files. This would allow keeping mailboxes accessible
through NFS but still keep the indexes in fast local disk.
Did also some other related cleanups and minor fixes.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Fri, 20 Dec 2002 09:53:51 +0200 |
parents | 35abd7a5d381 |
children | 3d8767d31fe2 |
line wrap: on
line diff
--- a/src/lib-index/mbox/mbox-rewrite.c Fri Dec 20 09:37:37 2002 +0200 +++ b/src/lib-index/mbox/mbox-rewrite.c Fri Dec 20 09:53:51 2002 +0200 @@ -61,13 +61,13 @@ i_stream_set_read_limit(input, end_offset); if (o_stream_send_istream(output, input) < 0) { index_set_error(index, "Error rewriting mbox file %s: %s", - index->mbox_path, + index->mailbox_path, strerror(output->stream_errno)); failed = TRUE; } else if (input->v_offset < end_offset) { /* fsck should have noticed it.. */ index_set_error(index, "Error rewriting mbox file %s: " - "Unexpected end of file", index->mbox_path); + "Unexpected end of file", index->mailbox_path); failed = TRUE; } else { failed = FALSE; @@ -315,7 +315,7 @@ if (input->v_offset >= end_offset) { /* fsck should have noticed it.. */ index_set_error(index, "Error rewriting mbox file %s: " - "Unexpected end of file", index->mbox_path); + "Unexpected end of file", index->mailbox_path); return FALSE; } @@ -539,7 +539,7 @@ if (!dirty_found) { index_set_error(index, "Expected dirty messages not found " - "from mbox file %s", index->mbox_path); + "from mbox file %s", index->mailbox_path); failed = TRUE; }