X-Git-Url: http://git.marmaro.de/?p=mmh;a=blobdiff_plain;f=sbr%2Fseq_list.c;h=87c5d04f190c1c9d58c8e47b6aa2783fa2efcda6;hp=23bd54425648662d57ca4605aa11d578fefd0545;hb=ced6090a330d3d83d0bce709f756aa3d7d65fea4;hpb=337338b404931f06f0db2119c9e145e8ca5a9860 diff --git a/sbr/seq_list.c b/sbr/seq_list.c index 23bd544..87c5d04 100644 --- a/sbr/seq_list.c +++ b/sbr/seq_list.c @@ -1,11 +1,11 @@ /* - * seq_list.c -- Get all messages in a sequence and return them - * -- as a space separated list of message ranges. - * - * This code is Copyright (c) 2002, by the authors of nmh. See the - * COPYRIGHT file in the root directory of the nmh distribution for - * complete copyright information. - */ +** seq_list.c -- Get all messages in a sequence and return them +** -- as a space separated list of message ranges. +** +** This code is Copyright (c) 2002, by the authors of nmh. See the +** COPYRIGHT file in the root directory of the nmh distribution for +** complete copyright information. +*/ #include #include @@ -31,11 +31,11 @@ seq_list(struct msgs *mp, char *seqname) } /* - * Special processing for "cur" sequence. We assume that the - * "cur" sequence and mp->curmsg are in sync (see seq_add.c). - * This is returned, even if message doesn't exist or the - * folder is empty. - */ + ** Special processing for "cur" sequence. We assume that the + ** "cur" sequence and mp->curmsg are in sync (see seq_add.c). + ** This is returned, even if message doesn't exist or the + ** folder is empty. + */ if (!strcmp (current, seqname)) { if (mp->curmsg) { sprintf(buffer, "%s", m_name(mp->curmsg)); @@ -56,18 +56,18 @@ seq_list(struct msgs *mp, char *seqname) for (i = mp->lowmsg; i <= mp->hghmsg; ++i) { /* - * If message doesn't exist, or isn't in - * the sequence, then continue. - */ + ** If message doesn't exist, or isn't in + ** the sequence, then continue. + */ if (!does_exist(mp, i) || !in_sequence(mp, seqnum, i)) continue; /* - * See if we need to enlarge buffer. Since we don't know - * exactly how many character this particular message range - * will need, we enlarge the buffer if we are within - * 50 characters of the end. - */ + ** See if we need to enlarge buffer. Since we don't know + ** exactly how many character this particular message range + ** will need, we enlarge the buffer if we are within + ** 50 characters of the end. + */ if (bp - buffer > len - 50) { char *newbuf; @@ -78,9 +78,9 @@ seq_list(struct msgs *mp, char *seqname) } /* - * If this is not the first message range in - * the list, first add a space. - */ + ** If this is not the first message range in + ** the list, first add a space. + */ if (bp > buffer) *bp++ = ' '; @@ -89,8 +89,8 @@ seq_list(struct msgs *mp, char *seqname) j = i; /* Remember beginning of message range */ /* - * Scan to the end of this message range - */ + ** Scan to the end of this message range + */ for (++i; i <= mp->hghmsg && does_exist(mp, i) && in_sequence(mp, seqnum, i); ++i) ;