fido.git
8 years agoFTNMAIL: don't die on invalid filenames master
Sebastian [Tue, 30 Jun 2015 20:27:28 +0000 (22:27 +0200)]
FTNMAIL: don't die on invalid filenames

8 years agoFTNMAIL: keep all kludges (except for PATH/SEEN-BY)
Sebastian [Tue, 30 Jun 2015 20:26:11 +0000 (22:26 +0200)]
FTNMAIL: keep all kludges (except for PATH/SEEN-BY)

8 years agoFTNMAIL: commend, whitespace, return value fixes
Sebastian [Tue, 30 Jun 2015 20:24:58 +0000 (22:24 +0200)]
FTNMAIL: commend, whitespace, return value fixes

9 years agoMSGBASE: sqlite database always contains utf-8
Sebastian [Mon, 11 Aug 2014 22:57:02 +0000 (00:57 +0200)]
MSGBASE: sqlite database always contains utf-8

9 years agoFTNMAIL: encode all strings equally
Sebastian [Mon, 11 Aug 2014 22:56:25 +0000 (00:56 +0200)]
FTNMAIL: encode all strings equally

9 years agomodules/FTNMAIL: remove prototypes, allow v5.010
Sebastian [Sun, 15 Jun 2014 21:35:44 +0000 (23:35 +0200)]
modules/FTNMAIL: remove prototypes, allow v5.010

9 years agomodules/FTNMAIL: save PATH and SEEN-BY in msgbase
Sebastian [Sun, 15 Jun 2014 21:32:35 +0000 (23:32 +0200)]
modules/FTNMAIL: save PATH and SEEN-BY in msgbase

9 years agoapps/scan.pl: print current time at startup
Sebastian [Sun, 15 Jun 2014 20:53:19 +0000 (22:53 +0200)]
apps/scan.pl: print current time at startup

9 years agoapps/scan.pl: locate modules correctly, v5.010
Sebastian [Sun, 15 Jun 2014 18:52:46 +0000 (20:52 +0200)]
apps/scan.pl: locate modules correctly, v5.010

9 years agomulti: new msgbase structure
Sebastian [Sun, 15 Jun 2014 18:18:05 +0000 (20:18 +0200)]
multi: new msgbase structure

apps/scan.pl:       updated to use FTNMAIL.pm
docs/msgbase.txt:   updated
modules/MSGBASE.pm: updated
modules/FTNMAIL.pm: small fixes

9 years agomodules/FTNMAIL: remove default output charset
Sebastian [Sun, 15 Jun 2014 11:08:26 +0000 (13:08 +0200)]
modules/FTNMAIL: remove default output charset

Packing a mail now requires a (valid) character set.
This removes the dependency on CONFIG.pm and allows
per-mail charsets (per language/echo...).

9 years agofido: big cleanup
Sebastian [Sun, 15 Jun 2014 01:44:41 +0000 (03:44 +0200)]
fido: big cleanup

FIDOMAIL.pm is replaced with FTNMAIL.pm. Expect bugs.

The internal mail data structure has changed
and is documented in docs/ftn.txt now.

All Fido-specific helper functions from MISC.pm are gone.

The configuration entry "address" is renamed to "ftn_address",
and "in_charset" is gone. Always assuming CP437 seems reasonable.

9 years agoapps/scan.pl: new argument parser, skip directories
Sebastian [Tue, 10 Jun 2014 22:56:32 +0000 (00:56 +0200)]
apps/scan.pl: new argument parser, skip directories

Directories inside inbound are now skipped.
Instead of "scan.pl path/", now needs to be called with "scan.pl -i path/".
This allows "-c config -i path".

9 years agomodules/CONFIG: use configuration file (-c)
Sebastian [Tue, 10 Jun 2014 22:49:58 +0000 (00:49 +0200)]
modules/CONFIG: use configuration file (-c)

All applications using the CONFIG module now require a "-c /path/to/config"
parameter. Loading the module fails if this file is missing or incomplete.

9 years agomodules/MISC: add write_datestring
Sebastian [Tue, 10 Jun 2014 20:55:43 +0000 (22:55 +0200)]
modules/MISC: add write_datestring

9 years agomodules: say warnings on stdout, not stderr
Sebastian [Sat, 7 Jun 2014 13:33:58 +0000 (15:33 +0200)]
modules: say warnings on stdout, not stderr

"scan.pl inbound >logfile" now works.

9 years agomodules/MISC: fix month numbers (now 1..12)
Sebastian [Sat, 7 Jun 2014 13:32:13 +0000 (15:32 +0200)]
modules/MISC: fix month numbers (now 1..12)

9 years agomodules/MSGBASE: quote table name ("24000_GER")
Sebastian [Sat, 7 Jun 2014 13:19:04 +0000 (15:19 +0200)]
modules/MSGBASE: quote table name ("24000_GER")

9 years agoSave area in additional sql table column 'area'.
Sebastian [Thu, 5 Jun 2014 23:09:25 +0000 (01:09 +0200)]
Save area in additional sql table column 'area'.

Allows messages from multiple areas to be saved in the same
database table. Enables implementation of an OUTBOUND table.

9 years agoapps: initial scan.pl
Sebastian [Wed, 4 Jun 2014 23:25:08 +0000 (01:25 +0200)]
apps: initial scan.pl

Reads a binkley-style inbound directory and handles both
ARCmail (ZIP only) and *.PKT files, other files are ignored.

Mails are imported in the message base, successfully handled
files are deleted.

9 years agomodules: initial FIDOMAIL, MSGBASE, MISC, CONFIG
Sebastian [Wed, 4 Jun 2014 23:13:54 +0000 (01:13 +0200)]
modules: initial FIDOMAIL, MSGBASE, MISC, CONFIG

FIDOMAIL: handles FTN style mail
- read_packet_file:  reads packed message file and parses headers to messages
- read_message:      reads and parses messages, generates mails (see docs/)
- write_packet_file and write_message are stubbed so far

MSGBASE: handles message base
- area_list:             list existing areas
- area_open, area_close: connect/disconnect from area database
- mail_add, mail_remove: add/remove mail from area
- mail_search:           search area for mails

MISC: lots of helper functions
- FTN-CHRS <-> charset map
- read_datestring:       parse different date formats
- date2text / text2date: convert to/from "yyyy-mm-hh"
- time2text / text2time: convert to/from "hh:mm:ss"
- fido2text / text2fido: convert to/from "z:n/n.p"
- netnodelist2text / text2netnodelist: converts parsed PATH/SEEN-BY kludges

CONFIG: configuration store

9 years agodocs: message base and internal data formats
Sebastian [Wed, 4 Jun 2014 23:05:52 +0000 (01:05 +0200)]
docs: message base and internal data formats