Fido board (conference) may contain lots of messages
concerning various subjects. Separate files SUBJ000.HTM,
SUBJ001.HTM etc. are created for each subject which occured in the board.
When all SUBJxxx pages have been generated, names of used subject are
alphabetically sorted and INDEX.HTM is created. The index page contains
sorted list of subjects linked with corresponding SUBJxxx.HTM files.
Messagebase filename may have fully qualified path. Names of template
files are hard-coded and they are expected in the current directory.
Output pages are always created in the current directory.
JAM messagebase convertor target HTML pages +-----------+ +-----------------+ +-------------+ | board.JHR |------->| |------>| INDEX.HTM | +-----------+ | | +-------------+ +-----------+ | | +-------------+ | board.JDT |------->| |------>| SUBJ001.HTM | +-----------+ | | +-------------+ |JAM2HTM.COM board| +-------------+ templates | |------>| SUBJ002.HTM | +-------------+ | | +-------------+ | INDEX.HTX |------>| | +-------------+ +-------------+ | |------>| SUBJ003.HTM | +-------------+ | | +-------------+ | SUBJECT.HTX |------>| | . +-------------+ +-----------------+ .
/HOME.HTM your homepage | | +------/FIDO/ | | FIDO.HTM list of boards | | | +---/FIDO/GOLDED/ | | INDEX.HTM | | SUBJ000.HTM | | SUBJ001.HTM | | SUBJ002.HTM | | | +---/FIDO/NOVELL/ | | INDEX.HTM | | SUBJ000.HTM | | SUBJ001.HTM
template.HTX division +-----------------------+ | <HTML> | | . | Prolog | . | | <%BeginDetail%> | +-----------------------+ | . | Detail | . | +-----------------------+ | <%EndDetail%> | | . | Epilog | . | | </HTML> | +-----------------------+
Variable name | INDEX | SUBJECT | Example | Description | ||||
---|---|---|---|---|---|---|---|---|
Prolog | Detail | Epilog | Prolog | Detail | Epilog | |||
<%BeginDetail%> | ® | ® | Delimiter | |||||
<%EndDetail%> | ® | ® | Delimiter | |||||
<%Today%> | ® | ® | ® | ® | ® | ® | 31.12.1999 23:59 | Time of conversion |
<%BoardName%> | ® | ® | ® | ® | ® | ® | GOLDED | Filename (1st parameter) |
<%BoardTitle%> | ® | ® | ® | ® | ® | ® | GoldEd message editor | Board description (2nd parameter) |
<%BoardTotal%> | ® | ® | ® | ® | 1234 | Total number of messages in all subjects | ||
<%Subject%> | ® | ® | ® | ® | Brand New Access | Subject of message(s) | ||
<%SenderName%> | ® | Pavel Srubar | Who wrote this msg | |||||
<%ReceiverName%> | ® | Odinn Sorensen | Recipient of this msg | |||||
<%DateWritten%> | ® | 31.05.1998 18:20 | When was the msg written | |||||
<%MessageNr%> | ® | 0001E053 | Identificator of this msg | |||||
<%Reply1st%> | ® | 0000B805 | Identificator of 1st reply to this msg | |||||
<%ReplyNext%> | ® | 00008A6C | Identificator of next reply in chain | |||||
<%ReplyTo%> | ® | 00000201 | Identificator of previous question | |||||
<%MessageText%> | ® | Hi! | The message body | |||||
<%SubjectCnt%> | ® | (®) | ® | 5 | Number of msgs concering this subject | |||
<%SubjectNr%> | ® | ® | ® | ® | 000 | Subj Nr (part of filename SUBJxxx.HTM) | ||
<%SubjectNext%> | ® | ® | 015 | Subj Nr of next subject in sorted list | ||||
<%SubjectPrev%> | ® | ® | 099 | Subj Nr of previous subject |
Variables may occur anywhere in the template tables, however their values are defined only in divisions marked with ®. Variable names are case insensitive.
Tag line</Q>.
Some simple formatting methods are inherited from Fidonet message styles. Words surrounded with special formating characters * / _ # are presented in different styles:
@ECHO OFF CD /d C:\JAM2HTM REM Files SUBJECT.HTX, INDEX.HTX, JAM2HTM.COM, JAM2HTM.BAT are expected here IF NOT "%1"=="" GOTO :OneBoard :AllBoards REM When JAM2HTM.BAT is run without parameter, it calls itself REM recursively once per each conference CALL JAM2HTM.BAT GOLDED Gold Editor International CALL JAM2HTM.BAT NOVELL Novell Netware World Wide Echo CALL JAM2HTM.BAT MUSIC All about Music GOTO :End :OneBoard called with %1=BoardName %2=Board title DEL *.HTM COPY \\FidoServer\FIDO\MSGBASE\%1.JHR COPY \\FidoServer\FIDO\MSGBASE\%1.JDT JAM2HTM.COM %1 %2 %3 %4 %5 %6 %7 %8 %9 DEL %1.JHR DEL %1.JDT IF NOT EXIST \\WebServer\WWW\FIDO\%1\INDEX.HTM MD \\WebServer\WWW\FIDO\%1 DEL \\WebServer\WWW\FIDO\%1\*.HTM MOVE *.HTM \\WebServer\WWW\FIDO\%1 :End