From 8c4722407787f962411e59770638880b36a862e6 Mon Sep 17 00:00:00 2001 From: Andrew Pamment Date: Fri, 22 Apr 2016 15:00:43 +1000 Subject: [PATCH] More experimentation trying to get ansis to look right --- mail_menu.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/mail_menu.c b/mail_menu.c index 763f757..96dbf63 100644 --- a/mail_menu.c +++ b/mail_menu.c @@ -820,11 +820,14 @@ void read_message(int socket, struct user_record *user, struct msg_headers *msgh ansi = z; while (strchr("ABCDEFGHIGJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz", body[z]) == NULL) z++; - if (body[z] == 'm' || body[z] == 'C' || body[z] == 'B' || body[z] == 'D') { + if (body[z] == 'm' || body[z] == 'C' || body[z] == 'B' || body[z] == 'D' || body[z] == 'A') { strncpy(buffer, &body[ansi], (z - ansi) + 1); buffer[z - ansi + 1] = '\0'; s_putstring(socket, buffer); } + if (body[z] == 'A') { + lines -= atoi(&body[ansi + 2]); + } if (body[z] == 'C') { chars += atoi(&body[ansi + 2]); }