[dovecot-cvs] dovecot/src/lib-storage/index/dbox dbox-mail.c, 1.13, 1.14
cras at dovecot.org
cras at dovecot.org
Mon Jul 24 01:41:47 EEST 2006
Update of /var/lib/cvs/dovecot/src/lib-storage/index/dbox
In directory talvi:/tmp/cvs-serv6950
Modified Files:
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.13
retrieving revision 1.14
diff -u -d -r1.13 -r1.14
--- dbox-mail.c 29 Jun 2006 11:08:57 -0000 1.13
+++ dbox-mail.c 23 Jul 2006 22:41:43 -0000 1.14
@@ -47,6 +47,7 @@
{
struct dbox_mailbox *mbox =
(struct dbox_mailbox *)trans->ibox;
+ uint32_t uid;
bool synced = FALSE;
int ret;
@@ -62,9 +63,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