CFG-Header
;*                                                             *
;*             LORA BBS GLOBAL MAINTENANCE UTILITY             *
;*   Original Copyright (C) 1988, 89, 90 by Marco Maccaferri   *
;*    Copyright (C) 1991, 92, 93, 94, 95 by Marcello Ardini    *
;*                    All rights reserved                      *
;*                                                             *

;*                        *
;*   GENERIC PARAMETERS   *
;*                        *

;
; CONFIG_LORA <Path+FileName>
; Lora config file
;
; CONFIG_LORA C:\Lora\CONFIG.DAT

CFG-Ver

;
; VERSION <LoraMant version>
; LoraMant version. Loramant uses this to automatically update the config
; file

CFG-BetaKey

;
; BETA_KEY <key>
; Alpha and Beta key. It can be requested to Marcello Ardini 2:332/402.2

CFG-TxtReadBufSize

;
; TXT_READ_BUF_SIZE <dimension>
; 
; Memory used for text file buffering (bytes)
; Default: 16384  Range:512-51200
;
; TXT_READ_BUF_SIZE   16384

CFG-LMCol

;
; COL_LM_WIN    <color>
; window internal color
;
; COL_LM_BOX    <color>
; Border color
;
; COL_LM_TITLE  <color>
; Window title color
;
; COL_LM_INFO   <color>
; First line color
;
; COL_LM_FOOTER <color>
; Last line color
;

CFG-LSCol

;
;

CFG-DBText

; DBASE_TEXT <TxtMessage>
; File containing text of messages to send     
;
; DBASE_TEXT C:\Lora\TxtFiles\LM_Text.Txt

CFG-DestMsg

; DEST_MSG <Path> [.<Extension>]          
; Destination path for messages created from DBASE_TEXT
; filename of created message: <Path>\<number>.<Extension>,
; where default Extension is .MGM.
;
; DEST_MSG C:\Manager\Message .MGM

CFG-F_AREAS.BBS

; F_AREAS.BBS <fareas.bbs>
; Areas.bbs style file where file areas (tic) forward informations are
; stored
;
; F_AREAS.BBS FAREAS.BBS

CFG-DirectVideo

; DIRECT_VIDEO
; Comment this to avoid direct screen writes

CFG-CheckSnow

; CHECK_SNOW
; Comment this to avoid snow checking

CFG-NoArc

; NOARC <file>
;
; Used by LORAMANT RESTORE_OUTBOUND to identify packets that lora creates
; when packing is not succesful. Loramant will rename packets as *.xpr and
; put it in right directory, ready for packing.
; Multiple lines and wildcards are allowed (*,?); <file> max lenght: 12
; chars.
;
; Example:
;   NOARC  NOARC.*
;   NOARC  *.OUT
;   NOARC  *.PKT
;   NOARC  *.P$T

CFG-MoveLevel

;*                                        *
;*  USER  OPTION PARAMETER                *
;*                                        *

; MOVE_LEVEL <Old Level> <New Level> <Day Expiration> [<flag>]
; Moves an user from <old level> to <new level>, after <day expiration>
; days. If <flag> parameter is present, it will be or'ed with user's flags
;
; MOVE_LEVEL  Worth   Extra 1 0123456789
; MOVE_LEVEL  Privil  Extra 5

CFG-DelUser

; DELETE_USER <Level> <Day>
; Kills users at <level> if they are missing for <day> days
;
; DELETE_USER Twit 1
; DELETE_USER Normal 1

CFG-SortUser

; SORT_USER_LEVEL <Level> <Sort Method>
; Sorts users of <Level> following the <sort method> (see end of doc.)
;
; SORT_USER_LEVEL SysOp     NCALL_D
; SORT_USER_LEVEL AsstSysOp NCALL_D

CFG-NoUsrBak

; NO_USER_BACKUP
; If this parameter is present, Loramant will not create users.bak file
;
; NO_USER_BACKUP

CFG-NewUserFlag

; NEWUSER_FLAG <flag>
; Defines the flag used by Loramant to mark new users.
;
; NEWUSER_FLAG  V

CFG-MsgsDeleteUser

; MSGS_DELETE_USER                                    
; If present, loramant will write the text file to create messages related
; to DeleteUser parameter
;
; MSGS_DELETE_USER

CFG-MsgsNewUser

; MSGS_NEWUSER
; If present, loramant will write text file to create messages related to
; newuser parameter
; This file will be written only if the user have the NEWUSER_FLAG set to
; OFF
;
; MSGS_NEWUSER

CFG-MsgsSysOpNewUser

; MSGS_SYSOP_NEWUSER
; If present, loramant will write the text file to create messages related
; to SysNewUser parameter.
; The file will be written only if the user have the NEWUSER_FLAG set to
; OFF
; with this parameter is possible to send separate newuser messages, to
; user itself and to sysop.
;
; MSGS_SYSOP_NEWUSER

CFG-MaxStatLvl

; MAX_STATS_LEVEL <level>
; Minimum level to insert user in statistic files
;
; MAX_STATS_LEVEL Clerk

CFG-FileStat

; FILE_STAT  <Path+FileName>
; File where statistic are stored
;
; FILE_STAT   USERSTAT.BBS

CFG-NoStat

; NO_STAT_<what>
; Avoid creation of statistics
;
; NO_STAT_KBDOWLOADS
; NO_STAT_KBUPLOADS
; NO_STAT_DOWNLOADS
; NO_STAT_UPLOADS
; NO_STAT_CALLS
; NO_STAT_MESSAGES

CFG-MsgsPreSubScr

; MSGS_PRE_SUBSCR <level>     
; If present loramant will write text file to create messages related to
; MsgPre<lvl> where <lvl> is the first letter of the name of the level
; (uppercase)
;
; MSGS_PRE_SUBSCR  Privel
; MSGS_PRE_SUBSCR  Worthy

CFG-MsgsAfterSubScr

; MSGS_AFTER_SUBSCR <level>
; If present, loramant will write the text file to create messages related
; to MsgAfter<lvl> parameter.
; <level> is the new level of the user.
;
; MSGS_AFTER_SUBSCR  Normal
; MSGS_AFTER_SUBSCR  Extra


CFG-TopStat

; TOP_STAT   <number>
; Number of the users that are included in stats (0-30,default 10) 
;
; TOP_STAT   10

CFG-MultiFStat

; MULTI_FILE_STAT                                                 
; Statistic are crated in separated files.
; The filename will be <FILE_STAT>XX, where XX stands for:
;   KD : Downloaded KB
;   KU : Uploaded KB
;   ND : Downloaded files
;   NU : Uploaded files
;   NC : Number of calls
;   NM : Number of messages written
;
; MULTI_FILE_STAT

CFG-UsrQuest

; USER_QUEST <file>
; Defines the name of the user quest. file referred by user list, where
; Loramant will look for user data.
;
; USER_QUEST C:\Lora\Quest.Txt

CFG-UsrArchiveQuest

; USER_ARCHIVE_QUEST <file>        
; Defines the filename where loramant will move the user quest. data when
; the user is removed from userlist.
; If commented, Loramant will discard the user data.                                  
;
; USER_ARCHIVE_QUEST C:\Lora\OldQuest.Txt

CFG-StrFCount

;*                                               *
;*   FILES_COUNT  OPTION PARAMETERS              *
;*                                               *

; STRING_FILES_COUNT <pos> <string>
; <string> is a single txt line that will be put after file area
; descripiton, starting from <pos>
; <pos> range: 5 - 69
; If %n is embedded in <string>, it will be replaced with the number of
; files present in area; %b will be replaced with Kbytes.
; Max lenght for string (total): 69 Chars.
; Ex.
;   STRING_FILES_COUNT 40 %n files - %bKBytes
; Will be translated in
;   Lora related files                     20 files -    9KBytes
;
; STRING_FILES_COUNT 45 %n files %bKb.

CFG-StrMCount

;*                                              *
;*   MSGS_COUNT OPTION PARAMETERS               *
;*                                              *

; STRING_MSGS_COUNT <pos> <string>
; Same thing as STRING_FILES_COUNT, related to message areas.
; Esx.
;   STRING_MSGS_COUNT 55 %n msgs.
;  Will be traslated in
;   Lora international echo                             120 msgs.
;
; STRING_MSGS_COUNT 58 %n msg

CFG-CfgPath

;*                                           *
;*   DAT2TX AND TXT2DAT OPTIONS PARAMETERS   *
;*                                           *

; CFG_PATH <path>
; Directory where loramant can find the various *.cfg files (and write it)

CFG-NewAreasCreatePathFido
;*                                                    *
;*   NEW_AREAS_CREATE AND MSGS_AUTOSETUP OPTIONS      *
;*   PARAMETERS                                       *
;*                                                    *

; PATH_NEWAREAS_FIDO <path>
; base path where directory of new fido style areas are created
; a nuove aree messaggi in base Fido
;
; PATH_NEWAREAS_FIDO    C:\Base\Fido

CFG-NewAreasCreatePathSquish

; PATH_NEWAREAS_SQUISH <path>
; base path where loramant will create squish file for new areas.
;
; PATH_NEWAREAS_SQUISH    C:\Base\Squish

CFG-NewAreasCreate

; NEWAREAS <from node> [<from node>..]
;   SUB_ECHOTAG <echotag substring> [<echotag substring>..]
;   BASE            F|Q|S|P
;   FORWARD         <forward node> [<forward node>..]
;   USE_AKA         <aka number>
;   PRIV            <Level>  [<flags>]
;   WRITE_PRIV      <Level>  [<flags>]
;   GROUP           <group>
;   MAX_MSGS        <day>
;   MAX_AGE         <day>
;   AGE_RCVD        <day>
;   AREAFIX         <Level> [<flags>]
;   PUBLIC_ONLY
;   PRIVATE_ONLY
;   KILL_UNLISTED
;   MESSAGE         <message name>
;   MESSAGE_HEADER  <message header>
;   GROUP_ONLY
;   READ_ONLY
;   WRITE_ONLY
;   AUTOFIX_FROM  "<syop name>"    ; FROM: field of the message for areafix
;   AUTOFIX_TO    "<areafix name>" ; TO: field             
;   AUTOFIX_PWD   "<password>      ; SUBJ: field   
;   AUTOFIX_NODE  <address>        ; uplink where Lmant can request the link
;   AUTOFIX_AKA   <address>        ; from address for request     
;   AUTOFIX_FIX   "<line>"         ; msg line for request message:
;                                  ; %t is replaced with echotag
;                                  ; %n is replaced CR
;   AUTOFIX_NOCHKFRWD              ; Lmant will not check if the requesting
;                                  ; node il listed in forward line   
;   FIDO_LIST    <file>            ; defines the filename where Lmant can
;                                  ; find areas descripitons and areas     
;                                  ; available on the uplink
                                   ; (FIDONET.NA)
; END
;
;I defaults:
;
; NEWAREAS   <forward node>
;   PRIV             Hidden
;   WRITE_PRIV       Hidden
;   USE_AKA          0
;   GROUP            0
;   MAX_MSGS         200
;   MAX_AGE          10
;   AGE_RCVD         0
;   AREAFIX          255
; END
;
; Warning: PassThrough is the default for message base.
;
; NEWAREAS   2:332/400 402.1 .2
;   PRIV            Privil
;   WRITE_PRIV      SysOp
;   BASE            S
;   SUB_ECHOTAG     .033 .ITA .332 .400
;   FORWARD         2:332/400 402.1 .2 .5
;   GROUP           7
;   MAX_MSGS        150
;   MAX_AGE         10
;   AGE_RCVD        1
;   AREAFIX         200  ABCDEFGHI
;   PRIVATE_ONLY
;   KILL_UNLISTED
;   AUTOFIX_FROM  "Marcello Ardini"
;   AUTOFIX_TO    "Areafix"
;   AUTOFIX_PWD    "nespola -r"
;   AUTOFIX_NODE  2:331/101
;   AUTOFIX_AKA   2:332/2
;   AUTOFIX_FIX   "%t%n"
;   AUTOFIX_NOCHKFRWD
;   FIDO_LIST     c:\lora\lst\fidonet.na
; END

CFG-Autofix

; AUTOFIX <nomefile>
; Defines the file where loramant can find the failed request made to lora
; arafix. if this parameter is commented, the -F switch of NEW_AREAS_CREATE
; will have no effect.
;
; Example:
;   AUTOFIX newarea.txt

CFG-IgnoreEchoTag

; IGNORE_ECHOTAG <echotag>
; Ignores an echotag even if matches the definitions in NEW_AREAS_CREATE
; Multiple lines are allowed
;
; Example:
;   IGNORE_ECHOTAG  PIPPO.ITA
;   IGNORE_ECHOTAG  PLUTO.ITA

CFG-PurgeQueueAutofix

; PURGE_QUEUE_AUTOFIX <day>
; Defines the time limit to keep requests in queue used by Lmant
;
; Example:
;   PURGE_QUEUE_AUTOFIX 10

CFG-BinEofCh

;*                                           *
;*   BIN2BBS OPTION PARAMETERS               *
;*                                           *

; BINARY_EOF_CHAR <char>
; defines char used to mark the end of bitmap in .BIN
; default : •  
;
; BINARY_EOF_CHAR     •  

CFG-BinClrEol

; BINARY_CLREOL <char>
; defines char used to insert delete-to-EOL sequence
; default …
;
; BINARY_CLREOL       …

CFG-BinCls

; BINARY_CLRSCR <carattere>
; defines char used to insert CLS sequence 
; default —
;
; BINARY_CLRSCR       —

CFG-BinCol

; BINARY_COL <colonna>
; Defines the nombers of rows in bin file, to insert CR/LF 
; default  80
;
; BINARY_COL       80

CFG-Footer

;*                 *
;*   DEFINITIONS   *
;*                 *
;
; <sort method> = NONE          None
;                 NCALL_A       number of calls (Ascending)   
;                 NCALL_D       number of calls (Descending)   
;                 KDN_A         downloaded KBytes A    
;                 KDN_D         downloaded Kbytes D   
;                 KUP_A         uploaded Kbytes A
;                 KUP_D         uploaded Kbytes D    
;                 TFIRST_A      First login date A
;                 TFIRST_D      First login date D
;                 TLAST_A       Last login date A
;                 TLAST_D       Last login date D
;                 NPOSTED_A     Number of written messages A
;                 NPOSTED_D     Number of written messages D
;                 NDN_A         Number of downloaded files A
;                 NDN_D         Number of downloaded files D
;                 NUP_A         Number of uploaded files A
;                 NUP_D         Number of uploaded files D
;
; <flags>       = lora style flags ['0'..'9', 'A'..'V'], 
;
;
; Embedde that can be inserted in text file defined in DBASE_TEXT           
; Have to be preceeded and followed by @ char  
; @<key>@
;
; <key>         = FIRST_NAME          User first name      
;                 NAME                First Last name of user
;                 HANDLE              user alias
;                 CITY                User City
;                 LAST_MSG_AREA       last message area visited
;                 PRIV                user level       
;                 FLAGS               user flags  
;                 LAST_DATE           last login date         
;                 NO_CALL_DAY         days from last login       
;                 CONNECT_TODAY       time used today (mins)  
;                 K_UPLOAD            Uploaded KBytes 
;                 K_DOWNLOAD          Downloaded Kbytes
;                 K_DOWNLOAD_TODAY    today dowloaded KBytes 
;                 #UPLOAD             Number of uploaded files
;                 #DOWNLOAD           Number of downloaded files
;                 LAST_FILE_AREA      last file areas visited  
;                 CREDIT              user credit   
;                 LAST_DBASE_AREA     Last dbase area visited    (*)
;                 SIGNATURE           User signature   
;                 VOICE_PHONE         Voice phone  
;                 DATA_PHONE          Data phone   
;                 BIRTH_DATE          Birthdate      
;                 SUBSCR_DATE         Subscription date
;                 FIRST_DATE          First login date       
;                 LAST_PWD_CHANGE     Date of last pwd change     
;                 VIDEO_X             Video columns
;                 VIDEO_Y             Video Rows 
;                 USER_ID             Hexadecimal user ID                  
;                 MSGS_WRITED         number of written messages
;                 COMMENT             User comment       
;                 LAST_BAUDRATE       User last baudrate         
;                 MINUTE_CHATTED      Minutes of chat       
;                 MSG_GROUP           Message group   
;                 BANK_MINUTE         Minutes in bank account
;                 BANK_KBYTES         KBytes in bank account
;                 VOTE                User vote      
;                 FILE_GROUP          File group 
;
;                 QUEST               Quest data                
;
;                 VER                 LoraMant version
;                 SYSOP               First Last name of Sysop
;                 COPYRIGHT           LoraMant copyright
;

LHLP-GENERAL

 Use:

    LoraMant <command> [<local switches>] [<global switches>]

 Commands:
     USER              KILL_UNLISTED        BIN2BBS
     MSGS_COUNT        MSGS_AUTOSETUP       FIDO_POSTSCAN
     FILES_COUNT       FILES_AUTOSETUP      FILES_INDEX
     TXT2DAT           DAT2TXT              IMPORT_BADMSGS
     NEW_AREAS_CREATE  RESTORE_OUTBOUND

 Global switches:
   -Q                       Avoids windows graphics                 
   -C<cfg file>             Configuration File. Default : LoraMant.Cfg

 Run "LoraMant <command> ?" for additional ifnos about commands        

LHLP-USER

 Use:

   LoraMant USER [-N]

   Maintains user list (purge, level adjust, sort)

 Local switches:
   -N  Avoid user list packing

LHLP-MSGS_COUNT

 Use:

   LoraMant MSGS_COUNT

   Counts messages ; Squish may cause problems               

LHLP-FILES_COUNT

 Use:

   LoraMant FILES_COUNT [-S]

   Counts files and space used.
   
 Local switches:
   -S  Avoids processing of CD-ROM areas               

LHLP-KILL_UNLISTED

 Use:

   LoraMant KILL_UNLISTED

   Deletes or mark received private messages adressed to users not
   present in user list
   (only fido/opus msgbase)              

LHLP-FILES_INDEX

 Use:

   LoraMant FILES_INDEX [-D]

   Creates global index of files present in file areas.

 Local switches:
   -D  In CD-ROM areas phisically scans the CD-ROM

LHLP-FIDO_POSTSCAN

 Use:

   LoraMant FIDO_POSTSCAN

   Creates index for *.msg message areas (same as LMSG -I -xq)

LHLP-MSGS_AUTOSETUP

 Use:

   LoraMant MSGS_AUTOSETUP

   Force settings of echomail areas following indication in 
   LoraMant.Cfg

LHLP-TXT2DAT

 Use:

   LoraMant TXT2DAT [-N] [-O] [-M] [-F] [-U] [-G] [-E]

   Compiles bin files using text files

 Local switches:
   -N nodes,pwd             -O costs
   -M message areas         -F file areas
   -U menu                  -G global config         
   -E events schedule  

LHLP-DAT2TXT

 Use:

   LoraMant DAT2TXT [-N] [-O] [-M] [-F] [-U] [-G] [-E] [-A] [-S]

   Scans bin files and creates related txt files                 

 Local switches:
   -N nodes,pwd             -O costs
   -M message areas         -F file areas
   -U menu                  -G global config         
   -E events schedule       -A writes AREAS.BBS
   -S writes FAREAS.BBS

LHLP-BIN2

 Use:

   LoraMant BIN2BBS [-P<file>] [-S|-N|-V]

   Converts bin file (bitmap  CGA 80x25) in
   .BBS format with Avatar color codes

 Local switches:
   -P<file> is the bin file to be converted (wildcards are OK)
   -S       Creates  .ASC (ASCII)
   -N       Creates  .ANS (ANSI)
   -V       Creates  .AVT (AVATAR codes, same as .BBS)


LHLP-IMPORT_BADMSGS

 Use:

   LoraMant IMPORT_BADMSGS [-N] [-P<path>] [-O] [-D] [-I]

   Imports messages from BAD_MSGS and creates one or more .pkt        

 Local switches:
   -N       Avoids renaming in .pkt files, leaving BADMnnnn.LMT
   -P<path> Bad_msgs directory (not defined in config.dat of Lora)
   -O       Automatically adjust the address
            ignoring originating zone and point 
   -D       Automatically adjust the address
            ignoring dest zone and point 
   -I       Avoids deleting messages after importing
               
LHLP-NEW_AREAS_CREATE

 Use:

   LoraMant NEW_AREAS_CREATE [-N] [-P<path>] [-O] [-D] [-I] [-S] [-A] [-F]

   Creates news areas following data in configuratione file and imports
   messages from BAD_MSGS in .pkt packets

 Local switches:
   -N       Avoids renaming in .pkt files, leaving BADMnnnn.LMT
   -P<path> Bad_msgs directory (not defined in config.dat of Lora)
   -O       Automatically adjust the address
            ignoring originating zone and point 
   -D       Automatically adjust the address
            ignoring dest zone and point 
   -I       Avoids deleting messages after importing
   -S       Imports only messages that have correct forward defined
   -A       Rewrites AREAS.BBS only if messages are imported
   -F       Automatic forwarding of afix requests to uplink

LHLP-RESTORE_OUTBOUND

 Use:

   LoraMant RESTORE_OUTBOUND

   Restores NOARC.* files in outbound dir as *.XPR, ready for      
   processing with lora. If .XPR are created, flag file 
   XPRFOUND.LM is also created
