From: Art Cancro Date: Tue, 11 Feb 2014 14:59:09 +0000 (-0500) Subject: This should be STAT X-Git-Tag: v9.01~122^2~26 X-Git-Url: https://code.citadel.org/?p=citadel.git;a=commitdiff_plain;h=2e8d6065b8d8dc6fa2cdc5388ffb6c8229a85bab This should be STAT --- 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));