Skip to content
Snippets Groups Projects
Commit 113479b2 authored by rswindell's avatar rswindell
Browse files

Added support for "LIST NEWSGROUPS" command (from RFC 2980).

parent 5e621bba
No related branches found
No related tags found
No related merge requests found
...@@ -268,7 +268,19 @@ while(client.socket.is_connected && !quit) { ...@@ -268,7 +268,19 @@ while(client.socket.is_connected && !quit) {
} }
writeln("."); // end of list writeln("."); // end of list
} }
else if(cmd[1].toUpperCase()=="OVERVIEW.FMT") { else if(cmd[1].toUpperCase()=="NEWSGROUPS") { // RFC 2980 2.1.6
writeln("215 list of newsgroups and descriptions follows");
if(include_mail && user.security.level == 99)
writeln("mail complete mail database");
for(g in msg_area.grp_list)
for(s in msg_area.grp_list[g].sub_list)
writeln(format("%s %s"
,msg_area.grp_list[g].sub_list[s].newsgroup
,msg_area.grp_list[g].sub_list[s].description
));
writeln("."); // end of list
}
else if(cmd[1].toUpperCase()=="OVERVIEW.FMT") { // RFC 2980 2.1.7
writeln("215 Order of fields in overview database."); writeln("215 Order of fields in overview database.");
writeln("Subject:"); writeln("Subject:");
writeln("From:"); writeln("From:");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment