[dovecot-cvs] dovecot/src/lib-storage/index index-search.c, 1.94,
1.95
cras at dovecot.org
cras at dovecot.org
Sun Nov 14 01:06:18 EET 2004
Update of /var/lib/cvs/dovecot/src/lib-storage/index
In directory talvi:/tmp/cvs-serv30540/lib-storage/index
Modified Files:
index-search.c
Log Message:
We didn't give error if trying to search message by sequence in an empty
mailbox.
Index: index-search.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/lib-storage/index/index-search.c,v
retrieving revision 1.94
retrieving revision 1.95
diff -u -d -r1.94 -r1.95
--- index-search.c 19 Sep 2004 23:46:33 -0000 1.94
+++ index-search.c 13 Nov 2004 23:06:16 -0000 1.95
@@ -697,16 +697,16 @@
return -1;
}
+ if (search_parse_msgset_args(ctx->ibox, hdr, args,
+ &ctx->seq1, &ctx->seq2) < 0)
+ return -1;
+
if (hdr->messages_count == 0) {
ctx->seq1 = 1;
ctx->seq2 = 0;
return 0;
}
- if (search_parse_msgset_args(ctx->ibox, hdr, args,
- &ctx->seq1, &ctx->seq2) < 0)
- return -1;
-
if (ctx->seq1 == 0) {
ctx->seq1 = 1;
ctx->seq2 = hdr->messages_count;
More information about the dovecot-cvs
mailing list