X-Git-Url: http://git.marmaro.de/?p=mmh;a=blobdiff_plain;f=sbr%2Fseq_list.c;h=ce23c2240286b0e968a5a6009d2683c134e962e7;hp=3606f6f399add19e0098d79a85dd046305cccb77;hb=1980b87246c7099e9191890036398960f6dee4d1;hpb=9e6f6b822a6de620c0aab4b122937e2c598169ed diff --git a/sbr/seq_list.c b/sbr/seq_list.c index 3606f6f..ce23c22 100644 --- a/sbr/seq_list.c +++ b/sbr/seq_list.c @@ -54,12 +54,9 @@ seq_list(struct msgs *mp, char *seqname) bp = buffer; - for (i = mp->lowmsg; i <= mp->hghmsg; ++i) { - /* - ** If message doesn't exist, or isn't in - ** the sequence, then continue. - */ - if (!does_exist(mp, i) || !in_sequence(mp, seqnum, i)) + for (i = mp->lowoff; i <= mp->hghoff; ++i) { + /* If message isn't in the sequence, then continue */ + if (!in_sequence(mp, seqnum, i)) continue; /* @@ -91,8 +88,7 @@ seq_list(struct msgs *mp, char *seqname) /* ** Scan to the end of this message range */ - for (++i; i <= mp->hghmsg && does_exist(mp, i) && - in_sequence(mp, seqnum, i); ++i) + for (++i; i <= mp->hghoff && in_sequence(mp, seqnum, i); ++i) ; if (i - j > 1) {