From 7fa27e46a5e3d6a8f55206f9e1eb15ecd9c2ee5b Mon Sep 17 00:00:00 2001 From: Bryan Ashby Date: Tue, 14 Jul 2015 22:24:23 -0600 Subject: [PATCH] * Spec/notes --- core/ftn_mail_packet.js | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/core/ftn_mail_packet.js b/core/ftn_mail_packet.js index 37b657b3..f50f8da3 100644 --- a/core/ftn_mail_packet.js +++ b/core/ftn_mail_packet.js @@ -13,7 +13,11 @@ var async = require('async'); // // References -// https://github.com/M-griffin/PyPacketMail/blob/master/PyPacketMail.py +// * http://ftsc.org/docs/fts-0001.016 +// * http://ftsc.org/docs/fsc-0048.002 +// +// Other implementations: +// * https://github.com/M-griffin/PyPacketMail/blob/master/PyPacketMail.py // function FTNMailPacket(options) { @@ -94,7 +98,7 @@ function FTNMailPacket(options) { .buffer('password', 8) // null terminated C style string .word16lu('origZone') .word16lu('destZone') - // :TODO: Document the various specs/fields more + // Additions in FSC-0048.002 follow... .word16lu('auxNet') .word16lu('capWordA') .word8('prodCodeHi') @@ -144,6 +148,8 @@ function FTNMailPacket(options) { } }; + // :TODO: should 0x8d "soft line feeds" be removed? + msgLines.forEach(function nextLine(line) { if(0 === line.length) { msgBody.message.push('');