home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 2 BBS / 02-BBS.zip / jtp114.zip / junktick.doc < prev    next >
Text File  |  1994-05-03  |  19KB  |  555 lines

  1.                             JunkTick V. 1.14
  2.  
  3.  
  4. I. Preface
  5.  
  6. It always bothered me that there were so many files sent around the world
  7. with TICK but there weren't any really useable programs to work with them.
  8. TICK itself was a brilliant idea but is very slow and lacks a lot of use-
  9. ful features. So I grabbed my trusted compiler and after working all those
  10. measly hours in which I don't have to work, to eat, to sleep or to play
  11. with my girl friend JunkTick was created.
  12.  
  13.  
  14. II. Features
  15.  
  16. - Available for DOS and OS/2 (16 bit application)
  17. - Faster than TICK
  18. - Dupe-Checking and replacing which really works (!)
  19. - Fileareas can be passthru
  20. - Lots of additional options to hatch single files or complete areas
  21. - Unpacks archives created by my famed programs TICKECHO and TICKPACK
  22. - Creates and unpacks TOC archives. Instead of sending hundreds of files
  23.   and TIC attaches JunkTick can pack everything in one file. This avoids
  24.   the dreaded FrontDoor bug and speeds up transfer
  25. - File areas belong to groups, every user only has access to a subset of
  26.   your groups
  27. - Full replacement for TICK, HATCH, RFD and RAID
  28. - Fully configurable announcements
  29. - Autoadd for new areas
  30. - Fully 4d capable and limited domain support
  31.  
  32.  
  33. III. Config file
  34.  
  35. JunkTick reads its configuration from the file JUNKTICK.CFG which has
  36. to reside in the same directory as JUNKTICK.EXE. The following is a
  37. list of all configuration words, for additional reference see the
  38. sample CFG file in this archive.
  39.  
  40.  
  41. NoTouch
  42.  
  43. Normally all files will be set to the date on which they arrived on your
  44. system so the new files scan will find them. If you don't want to touch
  45. the files specify NOTOUCH in your config file.
  46.  
  47.  
  48. Sysop
  49.  
  50. Sysop's name (needed for announcements). Blanks HAVE to be replaced by
  51. underscores!
  52.  
  53. Example:
  54.      Sysop      Kalle_Braun
  55.  
  56.  
  57. Address
  58.  
  59. Your main address (needed mainly for your zone number).
  60.  
  61. Example:
  62.      Address    2:2402/305
  63.  
  64.  
  65. DupeDir
  66.  
  67. JunkTick creates all dupe files in this directory. You shouldn't keep any
  68. other files there.
  69.  
  70. Example:
  71.      DupeDir    I:\Bbs\Tick\Dupes\
  72.  
  73.  
  74. DupeSize
  75.  
  76. Specifies how many dupe signatures are to be kept in the dupe files.
  77. Every signature uses 8 bytes.
  78.  
  79. Example:
  80.      DupeSize   1000
  81.  
  82.  
  83. KillOnError
  84.  
  85. Usually JunkTick leaves all inbound files it couldn't process for any
  86. reasons in the inbound directory, the corresponding TIC files will be
  87. renamed to .BAD. While this enables you to check for anything going
  88. wrong, it can fill up your harddisk quite fast with (often) useless
  89. files. With this statement you can tell JunkTick on what sort of errors
  90. it can simply delete the files. These categories are available:
  91.  
  92.      UnknownSystem       delete files received from unknown systems
  93.      WrongPassword       delete files with wrong password in TIC file
  94.      UnknownArea         delete files hatched in unknown areas (can't
  95.              happen if you use the NEWAREAS keyword
  96.      InactiveUser        delete files from users marked as inactive
  97.      RcvOnlyUser         delete files from users who aren't allowed to
  98.                          send in the corresponding area
  99.      BadCRC              delete files with bad CRC
  100.      DupeFile            delete duplicate files
  101.      NoPassThru          delete files in areas marked as pass-thru when no
  102.                          pass-thru directory is given
  103.      DiskFull            delete files which can't be moved to their
  104.                      target directory due to insufficient disk
  105.                          space
  106.      NoData              delete stray TIC files whose associated data
  107.                          file couldn't be found
  108.  
  109. Example:
  110.      KillOnError  DupeFile BadCRC
  111.  
  112.  
  113. RaidAlias
  114.  
  115. Usually your downlinks manage their connections to your fileareas by
  116. writing mail to JUNKTICK. In order to lighten the burden on those
  117. downlinks who until now had to write to RAID or something else you can
  118. define up to 15 additional names for JunkTick to accept.
  119.  
  120. Example:
  121.      RaidAlias    Raid Foo Bar Scrap
  122.  
  123.  
  124. AfterAnnounce
  125.  
  126. When processing requests from your downlinks JunkTick produces netmail
  127. answers, when announcing new files it produces echomail packets. Both
  128. sorts of mail should be processed right after exiting JunkTick. To
  129. avoid having to run your mail processor every time you run JunkTick,
  130. you can define special errorlevels for JunkTick to return after
  131. creating any mail. The errorlevel for announcements takes precedence
  132. over the request errorlevel.
  133.  
  134. Example:
  135.      AfterAnnounce 5
  136.  
  137.  
  138. AfterRequest
  139.  
  140. This is the errorlevel JunkTick returns when it has created netmail
  141. responses for a downlink, but no announcement echomail.
  142.  
  143. Example:
  144.      AfterRequest  6
  145.  
  146.  
  147. Inbound
  148.  
  149. Inbound directory where JunkTick looks for new files.
  150.  
  151. Example:
  152.      Inbound    I:\Bbs\PInbound\
  153.  
  154.  
  155. PacketDir
  156.  
  157. Directory in which JunkTick will create the PKT file containing the
  158. announcements. If you don't specify this JunkTick will use your inbound
  159. directory (see above)
  160.  
  161. Example:
  162.      PacketDir  I:\Bbs\MailIn\ 
  163.  
  164.  
  165. MailerBase
  166.  
  167. Only used on Binkley systems: The outbound directory for your own zone.
  168. JunkTick assumes, that the outbound dirs for other zones are built like
  169. MAILERBASE.zone. If you use 5D addressing, you can specify up to 20
  170. additional domains by specifying the zone number after the path.
  171.  
  172. Example:
  173.      MailerBase I:\Bbs\Outbound
  174.      MailerBase I:\Bbs\TurboNet  200
  175.      MailerBase I:\Bbs\DfltOut   210
  176.  
  177.  
  178. Logfile
  179.  
  180. Guess what it will be...
  181.  
  182. Example:
  183.      LogFile    I:\Bbs\Junktick.Log
  184.  
  185.  
  186. HoldDir
  187.  
  188. In this directory JunkTick keeps outgoing TIC and TOC files. You shouldn't
  189. keep any other files in this directory.
  190.  
  191. Example:
  192.      HoldDir    I:\Bbs\Tick\Hold\
  193.  
  194.  
  195. MaxArchiveSize
  196.  
  197. In order to avoid very large (like 15 MB) TOC archives JunkTick usually
  198. creates a new archive on every run. If you don't like this behaviour,
  199. you can specify what archive size you would like. If you don't specify
  200. MaxArchiveSize JunkTick will still create a new archive on every run.
  201.  
  202. Example:
  203.      MaxArchiveSize Infinite                keeps adding forever
  204.      MaxArchiveSize 1MB              \      creates new archive if
  205.      MaxArchiveSize 1024kB            >     the current one gets
  206.      MaxArchiveSize 1048576          /      larger than 1 MB
  207.  
  208.  
  209. PassThru
  210.  
  211. This enables the passthru option of JunkTick. Files in areas marked as
  212. passthru will be moved to this directory and will be deleted automatically
  213. when all downlinks have received them.
  214.  
  215. Example:
  216.      PassThru   I:\Bbs\Tick\PassThru\
  217.  
  218.  
  219. NewAreas
  220.  
  221. Specifies the root directory for unknown areas. When JunkTick receives
  222. files in an unknown area it will create a new directory and enter the area
  223. in the group AutoAdded.
  224.  
  225. Example:
  226.      NewAreas   J:\Filearea\
  227.  
  228.  
  229. NetMail
  230.  
  231. Your netmail directory. This is the place where JunkTick looks for it's
  232. mail and where the status mails for the sysop will be generated. On Front-
  233. Door systems JunkTick will generate file attach messages in this directory.
  234.  
  235. Example:
  236.      NetMail    I:\Bbs\Netmail\
  237.  
  238.  
  239. AnnHeader
  240.  
  241. Template for the header of every announcement. The following special
  242. tags are recognized:
  243.  
  244.    %wA - Aka for the current area, will be formatted to w characters
  245.      if w is specified (i.e. %12A will print '2:2402/305  ')
  246.    %DY - Year (4 digits)
  247.    %Dy - Year (2 digits)
  248.    %DM - Month (numeric)
  249.    %DN - Month 3 chars (english)
  250.    %Dn - Month 3 chars (german)
  251.    %DD - Day (numeric)
  252.    %DE - Date (english: MM-DD-YY)
  253.    %D  - Date (german: DD.MM.YY)
  254.    %TH - Hour (24 hour clock)
  255.    %Th - Hour (12 hour clock)
  256.    %TM - Minutes
  257.    %TA - AM/PM
  258.    %Ta - am/pm
  259.    %TE - Time (english: HH:MMAM/PM)
  260.    %Te - Time (english: HH:MMam/pm)
  261.    %T  - Time (german: HH:MM)
  262.  
  263. Example:
  264.      AnnHeader  I:\Bbs\Utils\AnnHeade.Txt
  265.  
  266.  
  267. AnnText
  268.  
  269. Template for the announcement of a file. The following special tags are
  270. recognized:
  271.  
  272.    %wFA - Area of file
  273.    %wFN - Name of file
  274.    %wFS - Filesize in bytes
  275.    %wFO - Origin of file
  276.    %FD  - Description of file
  277.  
  278. If you specify a width for the output, it will be formatted accordingly.
  279.  
  280. Example:
  281.      AnnText    I:\Bbs\Utils\AnnText.Txt
  282.  
  283.  
  284. AnnFooter
  285.  
  286. Template for the footer of every announcement. No special tags are allowed.
  287.  
  288. Example:
  289.      AnnFooter  I:\Bbs\Utils\AnnFoote.Txt
  290.  
  291.  
  292. AnnCount
  293.  
  294. Specifies how many files will be the maximum per message.
  295.  
  296. Example:
  297.      AnnCount   20
  298.  
  299.  
  300. AnnSubj
  301.  
  302. Subject line for every announcement. Announcement are sorted by group, if
  303. there is a %G in the subject line it will be replaced by the group name.
  304.  
  305. Example:
  306.      AnnSubj    New_files_again
  307.  
  308.  
  309. AnnPart
  310.  
  311. If JunkTick generates more than one message this text will be appended to
  312. AnnSubj. The first %d represents the number of the current message, the
  313. second %d represents the total number of messages.
  314.  
  315. Example:
  316.      AnnPart (Part_%d_of_%d)
  317.  
  318.  
  319. HelpFile
  320.  
  321. When a mail to JunkTick contains the keyword %HELP this file will be sent
  322. to the sender of this message. It should contain a short description how
  323. to order areas.
  324.  
  325. Example:
  326.      HelpFile  I:\Bbs\JunkTick.Hlp
  327.  
  328.  
  329. Origin
  330.  
  331. You can define up to 20 different origins for your announcements. JunkTick
  332. will pick one by random for each message.
  333.  
  334. Example:
  335.      Origin     JunkTick:_It's_crap_and_we_love_it_(c)_1991_MTV
  336.  
  337.  
  338. User
  339.  
  340. For every uplink and every downlink you have to create a user entry.
  341. It looks like this:
  342.  
  343.   User UserName UserPassword UserAddress UserFlags UserGroups
  344.  
  345.   UserName is (surprise surprise) the name of the user. Remember to replace
  346.   any blanks in the name with underscores.
  347.  
  348.   UserPassword is the users password for TICK and RAID
  349.  
  350.   UserAddress is the complete 4d address of the user. You don't have to
  351.   specify .0 for nodes.
  352.  
  353.   UserFlags are:
  354.     -H          Files will be put on hold
  355.     -C          Files will be sent crash
  356.     -D          Files will be marked as direct
  357.         if you specify neither -H, -D nor -C files will be
  358.         routed normally
  359.     -I          User is inactive. By using -I you can disable a user
  360.                 without removing his area definitions.
  361.     -Vaddr      Files for the user will be sent via ADDR
  362.     -F><DSNP    Flags to use if user requests new area via RAID. If you
  363.         don't specify this, >P will be used if there are no 
  364.         area specific defaults (see below for exact meaning of 
  365.         flags)
  366.  
  367.   The rest of the line contains a list of all groups the user may access.
  368.  
  369. Example:
  370.      User Otto_Maier SPIEL 2:4711/0815 -H DVNet WinNet DDS
  371.  
  372.  
  373. Group
  374.  
  375. With the first GROUP statement the area definitions begin. From now on only
  376. GROUP and AREA statements are allowed. Every area after a GROUP statement
  377. belongs to this group.
  378.  
  379. Example:
  380.      Group WinNet
  381.  
  382.  
  383. Area
  384.  
  385. The AREA statement defines all your areas. It looks like this:
  386.  
  387.   Area AreaTag AreaPath AreaDescription AreaFlags AreaLinks
  388.  
  389.   AreaTag is the name under which the area is known
  390.  
  391.   AreaPath is the path to which the files arriving in this area will be
  392.   moved. If you enabled the passthru support you can specify -P if you
  393.   don't want to keep the files yourself.
  394.  
  395.   AreaDescription is a short description of the area (mainly for RAID).
  396.   Remember: Blanks should be replaced by underscores.
  397.  
  398.   AreaFlags can be any combination of:
  399.      -Dnumber   - JUNKTICK KILL will delete files older than NUMBER days
  400.      -$Filename - Activates dupe checking for this area. The dupe signatures
  401.                   will be kept in the specified file. You MUST NOT use the
  402.                   same dupe file for multiple areas!
  403.      -C         - Activates CRC checking for this area
  404.      -Aarea     - Activates announcing for this area. All messages will 
  405.                   be created in echo area AREA. You can specify up to 
  406.           20 areas to announce in.
  407.      -Paddr     - uses ADDR instead of your main address as origin in TIC
  408.                   files and announcements.
  409.      -F><DSNP   - Flags to use if any users connects to this area via 
  410.           RAID. If you don't specify this, >P will be used if 
  411.           there are no user specific defaults. The area flags 
  412.           have precedence over the user flags! (see below for 
  413.           exact meaning of flags)
  414.  
  415.   AreaLinks is a list of system which send or receive files in this area.
  416.   Every address can be marked with some of the following special characters:
  417.       <         - Only receive files from this system, never send to it
  418.       >         - Only send files to this system, don't accept any files from
  419.                   it
  420.       D         - Don't send TIC files, create a netmail containing the
  421.                   description instead (mainly for system which don't use
  422.                   any TICKlike utility)
  423.       S         - Only send short TIC files (no PATH or SEENBY lines)
  424.       N         - Only send the file, no TIC file or description etc. Mainly
  425.                   useful to send NODEDIFFs etc. to your points.
  426.       P         - Pack files and TICs in TOC archive
  427.  
  428. Example:
  429.      Area XYZ J:\Files\ABC\ No_Desc -$XYZ -C <N2:47/11 >P2:08/15
  430.  
  431.  
  432. IV. Running JunkTick
  433.  
  434. JunkTick accepts a lot of parameters:
  435.  
  436.   HELP
  437.       prints a short description of every parameter.
  438.   ADD [flags]addr area_or_group+
  439.       adds user ADDR with the specified flags to the specified areas.
  440.       If you specify the name of a group the user will be added to all
  441.       areas in this group.
  442.   DESCRIBE area description
  443.       Enters DESCRIPTION as description of the specified area.
  444.   HATCH area [/R:replace] file
  445.       Hatches the specified file in the specified area. If you want this
  446.       file to replace another you can specify the old name with /R:NAME.
  447.       JunkTick searches for the file in the directory of the specified
  448.       area, the description is taken from the respective FILES.BBS file.
  449.   SEND addr file
  450.       Sends a file to the specified system. HATCH send a file to all systems
  451.       in the specified areas export list, SEND only sends to one system.
  452.   RESCAN area|ALL addr [date]
  453.       Rescans areas for the specified system. If you specify ALL instead
  454.       of an area name all active areas for this system will be rescanned.
  455.       If you specify a date (in DD.MM.YY format, sorry) only files younger
  456.       than this date will be sent.
  457.   QUERY addr
  458.       Prints a list of all areas ADDR is connected to.
  459.   LIST addr
  460.       Prints a list of all areas ADDR has access to.
  461.   UNLINKED addr
  462.       Prints a list of all areas ADDR has access and is not connected to.
  463.   ANNOUNCE date area+|ALL
  464.       Creates announcements for all files which arrived in the specified
  465.       areas after DATE (format again DD.MM.YY).
  466.   REMOVE addr area_or_group+
  467.       Disconnect system ADDR from all specified areas/groups.
  468.   KILL
  469.       Kills old files according to the -D parameter (see above).
  470.   TICK
  471.       Processes new TIC files.
  472.   TOCK
  473.       Processes new TOC archives.
  474.   REQUEST
  475.       Processes netmail for JunkTick.
  476.   UNPACK
  477.       Unpacks TICKPACK and TICKECHO archives.
  478.   SORT
  479.       Sorts JunkTick.Cfg (to keep it nice 'n tidy :-)
  480.  
  481. The last six commands can be specified together. JunkTick will then execute
  482. all of them in the correct order (i.e. KILL first, UNPACK before TICK etc.)
  483.  
  484.  
  485. V. Announcing
  486.  
  487. When an area declaration contains the -A flag all files arriving in 
  488. this area will be announced in an echo message. There are many ways to 
  489. accomplish that, but mostly they are very dependent on the BBS software 
  490. you use as they directly access the message base. JunkTick goes another 
  491. way, it simply creates an echo mail packet containing all messages. 
  492. This method is com- pletely independent of the software you use as echo 
  493. packets are a FIDO standard. It has a few disadvantages though: The 
  494. packet contains your main address as sender and receiver. If you use an 
  495. echo tosser with some sort of security feature it won't like these 
  496. packets as your own address is usually not in the export list for any 
  497. echo area. So you have to switch of the security features of your 
  498. tosser in order to process the announcements, but be careful that there 
  499. are no untossed packet lying around as they will be tossed without 
  500. security too! On my system I do it this way (using SQUISH):
  501.  
  502. SQUISH IN OUT SQUASH LINK            % Toss all other packets with security
  503. JUNKTICK UNPACK TICK TOCK REQUEST    % JunkTick creates echo packet
  504. DEL I:\BBS\BADMAIL\BADORG.*          % Rename badmail so SQUISH won't find it
  505. REN I:\BBS\BADMAIL\BAD.* BADORG.*    %
  506. SQUISH IN OUT SQUASH LINK -T         % Toss packet without security
  507. DEL I:\BBS\BADMAIL\BAD.*             % Rename badmail back so everything's
  508. REN I:\BBS\BADMAIL\BADORG.* BAD.*    % back to normal
  509.  
  510.  
  511. VI. RAID Feature
  512.  
  513. Connecting and disconnecting areas is very simple. A user sends a netmail to
  514. JUNKTICK and specifies his password in the subject line. The message text
  515. has to be composed of the following commands:
  516.  
  517. -AREA        disconnects the area
  518. +AREA   \    connects the area if the user has access to it
  519. AREA    /
  520. %-ALL        disconnects all areas
  521. %HELP        sends the help text (see above)
  522. %LIST        sends a list of all areas available to the user
  523. %QUERY       sends a list of all areas the user is connected to
  524. %UNLINKED    sends a list of all areas available to the user which he is
  525.              not connected to
  526.  
  527. That's it!
  528.  
  529.  
  530. VII. UNTOCK
  531.  
  532. In order to use the advantages of the TOC format even with downlinks which
  533. don't use JunkTick there is UNTOCK. UNTOCK unpacks TOC archives and creates
  534. the files and the TIC attaches which can be processed by TICK or any other
  535. compatible program.
  536.  
  537. To use UNTOCK just change to the directory containing the TOC archives and
  538. start UNTOCK.
  539.  
  540.  
  541. VIII. Miscelleanous
  542.  
  543. JunkTick is FreeWare. I tried to market it's predecessor TICKPACK as Share-
  544. Ware, but the hassle isn't worth the money (personal opinion!). So I keep
  545. the copyright and the sources, you can distribute the program in any way
  546. you like AS LONG AS YOU DON'T TAKE MONEY FOR IT!!!!! (just that I don't want
  547. money doesn't mean you can have some...). I don't take ANY responsibility
  548. for any damages JunkTick does to your hardware or the contents of your
  549. harddisk or whatever. I use the program myself so that I can be reasonably
  550. sure that there are no major bugs in it (knock on wood...). If you find any
  551. bugs, please tell me about them, but I am in no way obliged to correct them
  552. (still I will try to do so...)
  553.  
  554. Kalle Braun                                 2:2402/305@FIDONET
  555.