* Spec/notes
This commit is contained in:
parent
6438a1e53c
commit
7fa27e46a5
|
@ -13,7 +13,11 @@ var async = require('async');
|
||||||
|
|
||||||
//
|
//
|
||||||
// References
|
// 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) {
|
function FTNMailPacket(options) {
|
||||||
|
|
||||||
|
@ -94,7 +98,7 @@ function FTNMailPacket(options) {
|
||||||
.buffer('password', 8) // null terminated C style string
|
.buffer('password', 8) // null terminated C style string
|
||||||
.word16lu('origZone')
|
.word16lu('origZone')
|
||||||
.word16lu('destZone')
|
.word16lu('destZone')
|
||||||
// :TODO: Document the various specs/fields more
|
// Additions in FSC-0048.002 follow...
|
||||||
.word16lu('auxNet')
|
.word16lu('auxNet')
|
||||||
.word16lu('capWordA')
|
.word16lu('capWordA')
|
||||||
.word8('prodCodeHi')
|
.word8('prodCodeHi')
|
||||||
|
@ -144,6 +148,8 @@ function FTNMailPacket(options) {
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
// :TODO: should 0x8d "soft line feeds" be removed?
|
||||||
|
|
||||||
msgLines.forEach(function nextLine(line) {
|
msgLines.forEach(function nextLine(line) {
|
||||||
if(0 === line.length) {
|
if(0 === line.length) {
|
||||||
msgBody.message.push('');
|
msgBody.message.push('');
|
||||||
|
|
Loading…
Reference in New Issue