[dovecot-cvs]
dovecot/src/lib-storage/index index-messageset.c,1.18,1.19
cras at procontrol.fi
cras at procontrol.fi
Sun Aug 24 14:49:17 EEST 2003
Update of /home/cvs/dovecot/src/lib-storage/index
In directory danu:/tmp/cvs-serv19896/src/lib-storage/index
Modified Files:
index-messageset.c
Log Message:
Added oe6-fetch-redundant-msgset workaround.
Index: index-messageset.c
===================================================================
RCS file: /home/cvs/dovecot/src/lib-storage/index/index-messageset.c,v
retrieving revision 1.18
retrieving revision 1.19
diff -u -d -r1.18 -r1.19
--- index-messageset.c 23 Jun 2003 17:10:01 -0000 1.18
+++ index-messageset.c 24 Aug 2003 10:49:15 -0000 1.19
@@ -160,6 +160,14 @@
return FALSE;
}
+ if ((client_workarounds & WORKAROUND_OE6_FETCH_REDUNDANT_MSGSET) != 0 &&
+ ctx->uidset && ctx->num1 == ctx->ibox->index->header->next_uid &&
+ ctx->num2 == (unsigned int)-1) {
+ /* FETCH nextuid:* - it's very unlikely the client wants to
+ fetch the last message */
+ ctx->num2 = ctx->num1;
+ }
+
if (ctx->num1 > ctx->num2) {
/* swap, as specified by RFC-3501 */
unsigned int temp = ctx->num1;
More information about the dovecot-cvs
mailing list