$Log$
+ Revision 590.23 2001/12/29 04:21:22 nixo
+ stupid me. I didn't realize that asking for the header did what I wanted
+ so I changed my little 'y' hack to not bother reading the text of the
+ message. a little saving on the bandwidth.
+
Revision 590.22 2001/12/28 22:32:38 nixo
Added a "read m<y> next" function in read mode. It will skip to the next
message by the user in the current message list (whatever mode you're in
Fri Jul 10 1998 Art Cancro <ajc@uncensored.citadel.org>
* Initial CVS import
-
char buf[SIZ];
int founda = 0;
- sprintf(buf, "MSG0 %ld|%d", msg_arr[finda], 0); /* read whole message so we can get 'from=' */
+ sprintf(buf, "MSG0 %ld|%d", msg_arr[finda], 1); /* read the header so we can get 'from=' */
serv_puts(buf);
serv_gets(buf);
- while (serv_gets(buf), strncasecmp(buf, "text", 4))
+ while (serv_gets(buf), strcmp(buf, "000"))
{
if ((!strncasecmp(buf, "from=", 5)) && (finda != a)) /* Skip current message. */
{
{
a = lasta; /* meesa current */
founda = 1;
- break; /* while */
}
}
}
- /* Now read the content of the message > /dev/null */
- while (serv_gets(buf), strcmp(buf, "000"))
- {
- }
// we are now in synch with the server
if (founda)
break; /* for */