From 9f86bdd856e2a2b052132704ced48a8ddf6a3a69 Mon Sep 17 00:00:00 2001 From: Bryan Ashby Date: Sun, 12 Jul 2015 23:14:23 -0600 Subject: [PATCH] * Start of fidonet.js --- core/fidonet.js | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 core/fidonet.js diff --git a/core/fidonet.js b/core/fidonet.js new file mode 100644 index 00000000..f72519d8 --- /dev/null +++ b/core/fidonet.js @@ -0,0 +1,27 @@ +/* jslint node: true */ +'use strict'; + +var Config = require('./config.js').config; + +function getFTNAddress = function() { + return 'TODO'; +} + +function getFTNOriginLine = function() { + // + // Specs: + // http://ftsc.org/docs/fts-0004.001 + // + return ' * Origin: ' + Config.general.boardName + '(' + getFidoNetAddress() + ')'; +} + +// +// References +// https://gist.github.com/M-griffin/65a23b7ea3d7529fd725 +// +function extractMessagesFromFTNPacket(options) { + // + // options.path + // options.networkAddress + // +} \ No newline at end of file