[dovecot-cvs] dovecot/src/lib-storage/index/dbox dbox-mail.c, 1.9.2.2, 1.9.2.3
cras at dovecot.org
cras at dovecot.org
Mon Jul 24 01:41:44 EEST 2006
Update of /var/lib/cvs/dovecot/src/lib-storage/index/dbox
In directory talvi:/tmp/cvs-serv29057
Modified Files:
Tag: branch_1_0
dbox-mail.c
Log Message:
Slightly improved error message.
Index: dbox-mail.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/lib-storage/index/dbox/dbox-mail.c,v
retrieving revision 1.9.2.2
retrieving revision 1.9.2.3
diff -u -d -r1.9.2.2 -r1.9.2.3
--- dbox-mail.c 12 Jun 2006 08:24:03 -0000 1.9.2.2
+++ dbox-mail.c 23 Jul 2006 22:41:42 -0000 1.9.2.3
@@ -46,6 +46,7 @@
{
struct dbox_mailbox *mbox =
(struct dbox_mailbox *)trans->ibox;
+ uint32_t uid;
bool synced = FALSE;
int ret;
@@ -61,9 +62,14 @@
if (synced)
return -1;
+ if (mail_index_lookup_uid(trans->trans_view, seq, &uid) < 0) {
+ mail_storage_set_index_error(&mbox->ibox);
+ return -1;
+ }
+
mail_storage_set_critical(STORAGE(mbox->storage),
- "Cached message offset lost for seq %u in "
- "dbox %s", seq, mbox->path);
+ "Cached message offset lost for uid %u in "
+ "dbox %s", uid, mbox->path);
/* resync and try again */
if (dbox_sync(mbox, TRUE) < 0)
More information about the dovecot-cvs
mailing list