during a MSGS_ALL fetch, because the results don't matter.
$Log$
+Revision 654.2 2005/08/08 14:28:41 ajc
+* CtdlForEachMessage() -- avoid scanning v_seen sequence set for each message
+ during a MSGS_ALL fetch, because the results don't matter.
+
Revision 654.1 2005/08/05 21:31:01 ajc
* Any "delete message" operation which is synchronous to a client is now
deferred. This is accomplished by copying the message pointer to
Fri Jul 10 1998 Art Cancro <ajc@uncensored.citadel.org>
* Initial CVS import
+
long thismsg;
struct MetaData smi;
struct CtdlMessage *msg;
- int is_seen;
+ int is_seen = 0;
long lastold = 0L;
int printed_lastold = 0;
if (num_msgs > 0)
for (a = 0; a < num_msgs; ++a) {
thismsg = msglist[a];
- is_seen = is_msg_in_sequence_set(vbuf.v_seen, thismsg);
- if (is_seen) lastold = thismsg;
+ if (mode == MSGS_ALL) {
+ is_seen = 0;
+ }
+ else {
+ is_seen = is_msg_in_sequence_set(
+ vbuf.v_seen, thismsg);
+ if (is_seen) lastold = thismsg;
+ }
if ((thismsg > 0L)
&& (