From a1a57ce0136a36e2237716e0865d91ff0e1465bd Mon Sep 17 00:00:00 2001 From: Andrew Pamment Date: Mon, 4 Apr 2016 11:14:17 +1000 Subject: [PATCH] WWIV Mail Kludge.. did i get it right this time? --- mail_menu.c | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/mail_menu.c b/mail_menu.c index cdaf5ad..0f7c617 100644 --- a/mail_menu.c +++ b/mail_menu.c @@ -579,12 +579,17 @@ void read_message(int socket, struct user_record *user, struct msg_headers *msgh if (conf.mail_conferences[user->cur_mail_conf]->nettype == NETWORK_WWIV) { body2 = (char *)malloc(msghs->msgs[mailno]->msg_h->TxtLen); z2 = 0; + if (body[0] == 4 && body[1] == '0') { + skip_line = 1; + } else { + skip_line = 0; + } for (z=0;zmsgs[mailno]->msg_h->TxtLen;z++) { if (body[z] == '\r') { + body2[z2++] = '\r'; - if (body[z+1] == '\n') { - z++; - } + z++; + if (body[z+1] == 4 && body[z+2] == '0') { skip_line = 1; } else {