[dovecot-cvs] dovecot/src/lib-storage/index index-fetch.c,1.44,1.45
cras at procontrol.fi
cras at procontrol.fi
Tue Feb 11 12:30:32 EET 2003
Update of /home/cvs/dovecot/src/lib-storage/index
In directory danu:/tmp/cvs-serv5818/src/lib-storage/index
Modified Files:
index-fetch.c
Log Message:
Added client_workarounds setting, with currently one workaround for OE6.
Index: index-fetch.c
===================================================================
RCS file: /home/cvs/dovecot/src/lib-storage/index/index-fetch.c,v
retrieving revision 1.44
retrieving revision 1.45
diff -u -d -r1.44 -r1.45
--- index-fetch.c 27 Jan 2003 05:44:03 -0000 1.44
+++ index-fetch.c 11 Feb 2003 10:30:29 -0000 1.45
@@ -26,7 +26,8 @@
const char *messageset, int uidset)
{
struct index_mailbox *ibox = (struct index_mailbox *) box;
- struct mail_fetch_context *ctx;
+ struct mail_fetch_context *ctx;
+ int check_mail;
ctx = i_new(struct mail_fetch_context, 1);
@@ -39,7 +40,9 @@
return NULL;
}
- if (!index_storage_sync_and_lock(ibox, TRUE, MAIL_LOCK_SHARED))
+ check_mail = (client_workarounds &
+ WORKAROUND_OE6_FETCH_NO_NEWMAIL) == 0;
+ if (!index_storage_sync_and_lock(ibox, check_mail, MAIL_LOCK_SHARED))
return NULL;
if (update_seen != NULL && *update_seen &&
More information about the dovecot-cvs
mailing list