]>
diplodocus.org Git - nmh/blob - docs/historical/mh-6.8.5/sbr/m_setvis.c
1 /* m_setvis.c - set the unseen-sequence */
7 void m_setvis (mp
, seen
)
8 register struct msgs
*mp
;
17 if ((cp
= m_find (usequence
)) == NULL
18 || (ap
= brkstring (dp
= getcpy (cp
), " ", "\n")) == NULL
27 if (m_seqflag (mp
, *ap
))
28 for (msgnum
= mp
-> lowsel
; msgnum
<= mp
-> hghsel
; msgnum
++)
29 if (mp
-> msgstats
[msgnum
] & UNSEEN
)
30 (void) m_seqdel (mp
, *ap
, msgnum
);
33 for (msgnum
= mp
-> lowmsg
; msgnum
<= mp
-> hghmsg
; msgnum
++)
34 if (mp
-> msgstats
[msgnum
] & UNSEEN
)
35 (void) m_seqadd (mp
, *ap
, msgnum
, -1);