nntp-server
Version:
NNTP server implementation.
27 lines (18 loc) • 477 B
JavaScript
// https://tools.ietf.org/html/rfc3977#section-8.4
//
;
const status = require('../status');
const CMD_RE = /^LIST OVERVIEW\.FMT$/i;
module.exports = {
head: 'LIST OVERVIEW.FMT',
validate: CMD_RE,
pipeline: true,
run(session/*, cmd*/) {
return [ status._215_INFO_FOLLOWS ]
.concat(session.server._getOverviewFmt(session))
.concat('.');
},
capability(session, report) {
report.push([ 'LIST', 'OVERVIEW.FMT' ]);
}
};