home *** CD-ROM | disk | FTP | other *** search
/ Current Shareware 1994 January / SHAR194.ISO / email / dove0793.zip / DOVEPACK.DOC < prev    next >
Text File  |  1992-09-02  |  12KB  |  216 lines

  1. Documentation for DOVEPACK.EXE
  2.  
  3. PLEASE NOTE:  Previous versions of this program have had some rather serious
  4. bugs.  Please do not use versions of this program prior to version 0.7 BETA
  5. (and if you have any earlier versions, please destroy them on sight!).
  6.  
  7. DOVEPACK.EXE is a quick and dirty program designed to do a job that,
  8. hopefully, will be taken over by other programs in the future.  Basically,
  9. it's designed to take a *.UUT file produced by DOVEMAIL, rename it to a *.PKU
  10. file, compress it into a *.mo? archive, and add the *.mo? filename to a *.?lo
  11. file if necessary (please note that in this documention you'll see many
  12. references to a *.mo? file, because the first version of this program didn't
  13. "know about" any of the other valid extensions that use the first two letters
  14. of a day of the week followed by a number.  This version DOES know about the
  15. other extensions, however).  If all of this is confusing to you, the idea is
  16. that it will pack files for use with BinkleyTerm and other mailers that use
  17. *.flo attach files.  I've also included code to create file attach messages
  18. for systems that don't use the *.?lo files, but since my system doesn't use
  19. these I'm not sure if I have it right yet.  Just in case that doesn't meet
  20. your needs, I'm also including an archive of a program called NOFLO in the
  21. DoveMail distribution archive, that may make it possible to use DovePack with
  22. some other types of mailers.  This is NOT a program that has a lot of "Bells
  23. and Whistles", in fact, it takes only a maximum of seven command line
  24. arguments, four of which are optional:
  25.  
  26. -o[outbound area path]
  27. This is the path to your outbound mail area.  If you have more than one, you
  28. can run DOVEPACK multiple times, specifying a different outbound area each
  29. time.
  30.  
  31. -a[net/node]
  32. Your address, in net/node format... do NOT specify zone, point, etc.  If you
  33. are a point, use your "fakenet" address here.  If you are active in more than
  34. one network, or have more than one address, use the net/node address
  35. corresponding to the network associated with the outbound area you specified
  36. with the -o parameter, or just use your primary address.
  37.  
  38. -p[packer invocation command]
  39. This is the DRIVE, PATH, and FULL FILESPEC followed by any arguments needed to
  40. invoke your preferred compression program for outbound mail, with spaces
  41. replaced by underscores.  Use the argument that deletes the original file after
  42. archiving it (usually referred to a "move").  A couple of examples follow:
  43.  
  44.      -pC:\ARCHIVE\PKZIP.EXE_-m
  45.  
  46.      -pC:\UTILITY\LHA.EXE_m_/m
  47.  
  48.  
  49. The following arguments are all optional:
  50.  
  51. -s[36 byte long month string]
  52. 36 byte long string containing abbreviations for months of year.  Use this
  53. switch only if you are in a non-English speaking location and wish to use
  54. different month abbreviations.  This affects both the log file (if the -l
  55. switch is used) and the date string in the message header (if the -m switch is
  56. used)  If you're not using either the -l or the -m switch, this switch is
  57. irrelevant.  The default string is "JanFebMarAprMayJunJulAugSepOctNovDec".
  58.  
  59. -l[log filespec]
  60. Optional switch specifies name of log file (a path specification may also be
  61. included), if you wish to keep one.  Uses the standard Binkley/Maximus/Opus
  62. log file format.  The default is to not maintain a log, if the -l switch is
  63. not used.
  64.  
  65. -m[netmail area path]
  66. Create a netmail file attach message instead of a *.?lo file in the outbound
  67. area.  This switch is optional, and if you don't use it (or don't specify a
  68. path following the switch), DovePack will (if necessary) create or add the
  69. name of the mail archive bundle to a *.?lo file in your outbound directory,
  70. which is the normal mode of operation for BinkleyTerm and some other mailers.
  71. If you DO use this switch, DovePack will create a file attach message (with
  72. nothing in the message body) in your netmail area, with the Private, File
  73. Attach, and Kill after sending flags set.  Please note that I personally use
  74. BinkleyTerm so if this doesn't work, it's going to be up to you to explain
  75. to me what's wrong with the file attach messages that are being created.  One
  76. other note, your netmail area messages must be in single-message-per-file
  77. format (*.msg) or this won't work.
  78.  
  79. -f[filespec mask]
  80. This is also an optional argument, and you probably won't need to use it, but
  81. it can be used to restrict or change the filenames that DovePack will search
  82. for in your outbound area when searching for uncompressed batched newsgroup
  83. files.  Normally, DovePack searches for any file with an extension of ".UUT"
  84. (the actual default filemask is "*.UUT").  However, should you have the need,
  85. you can change this.  The most common reason for changing this would be to
  86. restrict the files processed on a given run of DovePack to those destined for
  87. certain nodes (you might do this if, for example, one node required their mail
  88. to be packed using a different compression method than the others... you'd
  89. pack for that node first, then run DovePack again without the -f argument to
  90. pack for everyone else).
  91.  
  92. For example, let's suppose that you are feeding one node that wants to receive
  93. their newsgroup feed compressed using PKARC, and that node's net/node number
  94. is 123/456.  You'd first convert the net and node numbers to four digit
  95. hexadecimal numbers, using leading zeroes as necessary to make four digit
  96. numbers.  One easy way to do this is to call up BASIC and use the PRINT HEX$(n)
  97. command to do the decimail to hexadecimal conversion.  For example:
  98.  
  99.     PRINT HEX$(123) --- result is 7B,  so use 007B
  100.     PRINT HEX$(456) --- result is 1C8, so use 01C8
  101.  
  102. Now put the hexadecimal numbers together (net first) and add the ".UUT"
  103. extension to form the filemask...  007B01C8.UUT in this example.  Then, you
  104. could invoke DOVEPACK using parameters like -pC:\ARC\PKARC.EXE_-M and
  105. -f007B01C8.UUT to specify the archiver and node to be processed using that
  106. archiver.
  107.  
  108. Please note that the original case of all arguments given in the command
  109. line used to invoke DovePack is retained (this is a change from previous
  110. versions of DovePack), so that if your compression program treats uppercase
  111. and lowercase arguments differently, DovePack will now pass them with the
  112. original case given in the DovePack command line.
  113.  
  114. This program is admittedly a bit "brain dead" in its current form.  It will
  115. always try to add a .PKU file to an existing *.mo? file for the node in
  116. question, if one exists, and it will always add the filename to an existing
  117. attach file (*.?lo file) if one exists (unless, of course, you are creating
  118. file attach messages).  If no attach file exists, it will create a *.flo file
  119. for the node in question.  You will then need to either use the DOS REN
  120. command to rename the *.FLO file to another "flavor" (e.g. .HLO for hold, .CLO
  121. for crash) OR you can run a program like oMMM to rename the attach files
  122. according to a schedule.
  123.  
  124. I'm hoping that the authors of programs like oMMM will "teach" their programs
  125. to look for .UUT files, rename them to .PKU files, and archive them into
  126. outbound mail archives, similar to what is now done with FTS-0001 format .OUT
  127. files.  If that happens, the need for this program will disappear; otherwise
  128. I'll consider enhancing it.
  129.  
  130. While this all works very similar to the packing of normal Fidonet FTS-0001
  131. mail, there are a couple of nuances you should be aware of.  The main one is
  132. that newsgroup feeds CANNOT be rerouted through intermediate systems (unless
  133. you use some exceptional batch file programming at both your system and the
  134. intermediate).  In other words, suppose you are system "A" in the diagram
  135. below, and you want to send mail to system "C" by way of system "B":
  136.  
  137.                             A <-----> B <-----> C
  138.  
  139. What you CANNOT do is pack mail for C, but then send it to B.  What you SHOULD
  140. do in such a case is pack the mail to B, and let him run DoveMail which will
  141. then repack the mail for C.  If B isn't willing or able to run DoveMail, then
  142. you'll either have to send directly to C, or use some real batch file magic at
  143. B (that is beyond the scope of these instructions).
  144.  
  145. Also, newsgroup packets do NOT have a "packet header" like FTS-0001 mail
  146. packets, for the simple reason that the RFC- specs don't specify one.
  147. Therefore, if anything goes wrong during the packing process, DovePack will
  148. TRY to rename the *.PKU file back to its original *.UUT name, so that you
  149. still have some chance of figuring out where it's supposed to go later on.
  150. But, should you ever wind up with an "orphaned" .PKU file in the outbound
  151. area, there's no header information to decipher to figure out where it's
  152. really supposed to go.  Hopefully, this will not be a major problem.
  153.  
  154. Please remember that if you are sending both echomail and newsgroup feeds to
  155. the same node, you MUST use the same compression program with DovePack as you
  156. use for sending echomail... otherwise, you may have one compressor trying to
  157. add to a mail archive that was created by a different compressor, making the
  158. archive unreadable by either.  And, nodes that receive feeds may need to use a
  159. general purpose unpacking shell such as GUS, POLYXARC, or SPAZ to unpack the
  160. incoming mail archives, so that the presence of .PKU files in a mail archive
  161. doesn't confuse the echomail processor.  If you are feeding nodes that use the
  162. SQUISH echomail processor, be sure to read the notes on SQUISH in the DoveMail
  163. documentation.
  164.  
  165. Here is a typical invocation line for DovePack:
  166.  
  167.      DOVEPACK -a3210/123 -oC:\BBS\OUTBOUND -pC:\COMPRESS\PKZIP.EXE_-M
  168.  
  169. Again, note the underscore that replaces a space in the compressor invocation
  170. line, and especially note that both the full patch ("C:\COMPRESS\") and the
  171. program extension (".EXE") are given... these MUST be present since DovePack
  172. neither assumes path nor extension for the called program.  You can ignore
  173. this if you want to, but if you do don't complain when DoveMail doesn't work!
  174.  
  175. Here's the typical flow of mail processing for a node that receives and
  176. distributes both echomail and neswgroups:
  177.  
  178. 1) Mailer receives mail archive (*.mo?) file from another node.  We'll assume
  179. this archive contains both echomail (*.PKT files) and newsgroups (*.PKU
  180. files).
  181.  
  182. 2) After mailer disconnects, a general purpose unpacking program such as GUS,
  183. POLYXARC, or SPAZ is called to uncompress the *.mo? file.  This leaves both
  184. *.PKT and *.PKU files in the current directory.
  185.  
  186. 3) DoveMail is called, and it processes the *.PKU files.  It may also create
  187. some outgoing *.UUT files in the outbound directory, if you send newsgroups to
  188. other nodes.
  189.  
  190. 4) Your echomail processor is called (for both import and export) and it
  191. processes the echomail and may also create some *.OUT files in the outbound
  192. directory.
  193.  
  194. 5) If necessary you call a program like oMMM to archive up the outgoing *.OUT
  195. files into outgoing mail archives.
  196.  
  197. 6) You then call DovePack to place any outgoing .UUT files into outgoing mail
  198. archives.
  199.  
  200. (Note: in some installations it may work better if you do #6 before #5,
  201. especially if you want the program referenced in 5 to rename any .FLO files to
  202. another "flavor").
  203.  
  204. Possible errorlevels that may be returned by this program are:
  205.  
  206. 0 - No error
  207. 1 - Invalid or missing data in command line
  208. 2 - Unexpected error (some .PKT files may have been processed)
  209. 3 - An errorlevel was returned from the file compression program
  210.  
  211. Once again, I hope that the need for DovePack as a separate program will go
  212. away soon, but in the meantime use it as necessary in the meantime to handle
  213. archiving newsgroups.
  214.  
  215. Jack
  216.