From e5d2b185ea8cf5de97e82d53d8ab4f68604c6161 Mon Sep 17 00:00:00 2001 From: Andrew Pamment Date: Fri, 8 Apr 2016 13:32:04 +1000 Subject: [PATCH] Attempt to strip ANSI codes from messages --- mail_menu.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/mail_menu.c b/mail_menu.c index 0275ee1..5925078 100644 --- a/mail_menu.c +++ b/mail_menu.c @@ -645,6 +645,7 @@ void read_message(int socket, struct user_record *user, struct msg_headers *msgh char timestr[17]; int doquit = 0; int skip_line = 0; + int chars = 0; jb = open_jam_base(conf.mail_conferences[user->cur_mail_conf]->mail_areas[user->cur_mail_area]->path); if (!jb) { @@ -728,9 +729,11 @@ void read_message(int socket, struct user_record *user, struct msg_headers *msgh } lines = 0; + chars = 0; for (z=0;z