Add initial QWK docs, update FTN, etc.

This commit is contained in:
Bryan Ashby 2020-05-05 19:01:47 -06:00
parent 7fb10418f0
commit 67ac86ac05
No known key found for this signature in database
GPG key ID: B49EB437951D2542
6 changed files with 185 additions and 97 deletions

View file

@ -187,6 +187,8 @@ qwk-export arguments:
--user USER User in which to export for. Defaults to the SysOp.
--after TIMESTAMP Export only messages with a timestamp later than
TIMESTAMP.
--no-qwke Disable QWKE extensions.
--no-synchronet Disable Synchronet style extensions.
`
};

View file

@ -521,6 +521,13 @@ function exportQWKPacket() {
const userName = argv.user || '-';
const writerOptions = {
enableQWKE : !(false === argv.qwke),
enableHeadersExtension : !(false === argv.synchronet),
enableAtKludges : !(false === argv.synchronet),
archiveFormat : argv.format || 'application/zip'
};
let totalExported = 0;
async.waterfall(
[
@ -578,10 +585,10 @@ function exportQWKPacket() {
},
(user, Message, messageIds, callback) => {
const { QWKPacketWriter } = require('../qwk_mail_packet');
const writer = new QWKPacketWriter({
const writer = new QWKPacketWriter(Object.assign(writerOptions, {
bbsID,
user,
});
}));
writer.on('ready', () => {
async.eachSeries(messageIds, (messageId, nextMessageId) => {