From b7993043da665aa40f60367df4395eb8936af0f4 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Wilfried=20G=C3=B6esgens?= Date: Tue, 16 Jun 2009 21:11:50 +0000 Subject: [PATCH] * if the Msg read seem invalid, don't add it to our list. --- webcit/messages.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/webcit/messages.c b/webcit/messages.c index cad2773d9..485f23d7a 100644 --- a/webcit/messages.c +++ b/webcit/messages.c @@ -609,6 +609,11 @@ int load_msg_ptrs(const char *servcmd, int with_headers) Msg->msgnum = StrBufExtractNext_long(Buf, &Ptr, '|'); Msg->date = StrBufExtractNext_long(Buf, &Ptr, '|'); + + if ((Msg->msgnum == 0) && (StrLength(Buf) < 32)) { + free(Msg); + continue; + } /* * as citserver probably gives us messages in forward date sorting * nummsgs should be the same order as the message date. -- 2.39.2