From 2e8d6065b8d8dc6fa2cdc5388ffb6c8229a85bab Mon Sep 17 00:00:00 2001 From: Art Cancro Date: Tue, 11 Feb 2014 09:59:09 -0500 Subject: [PATCH] This should be STAT --- citadel/modules/nntp/serv_nntp.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/citadel/modules/nntp/serv_nntp.c b/citadel/modules/nntp/serv_nntp.c index 0970e68b4..495771d59 100644 --- a/citadel/modules/nntp/serv_nntp.c +++ b/citadel/modules/nntp/serv_nntp.c @@ -721,7 +721,8 @@ void nntp_article(const char *cmd) { // Which NNTP command was issued, determines whether we will fetch headers, body, or both. int headers_only = HEADERS_ALL; if (acmd == HEAD) headers_only = HEADERS_FAST; - if (acmd == BODY) headers_only = HEADERS_NONE; + else if (acmd == BODY) headers_only = HEADERS_NONE; + else if (acmd == STAT) headers_only = HEADERS_FAST; // now figure out what the client is asking for. char requested_article[256]; @@ -790,8 +791,9 @@ void nntp_article(const char *cmd) { cprintf("222 %ld \r\n", requested_msgnum); } if (acmd == STAT) { - // crash FIXME cprintf("223 %ld \r\n", requested_msgnum); + FreeStrBuf(&msgtext); + return; } client_write(SKEY(msgtext)); -- 2.30.2