home *** CD-ROM | disk | FTP | other *** search
/ HAM Radio 1 / HamRadio.cdr / packet / packetcl / fwd.doc < prev    next >
Text File  |  1989-01-28  |  9KB  |  298 lines

  1.  
  2.  
  3.      Automatic forwarding of messages to other MailBox systems.
  4.  
  5.      The file FWD.MB contains information that drives the automatic
  6. forwarding of messages. If the file does not exist, no forwarding is done.
  7.  
  8.       Summary of list header types within FWD.MB
  9.  
  10. Item  Type        Function
  11.  
  12. I     File        "Input from File"
  13. O     File        "Output to File"
  14. X     smtp        "Exchange Messages with smtp"
  15. E     Forwarding    "Answer Reverse Forward Requests"
  16. F     Forwarding    "Forward and Reverse Forward"
  17. H     Forwarding    "Forward, Reverse Forward, and Poll"
  18. !     DOS Commands    "Like .BAT file"
  19.  
  20.       Summary of script item types within FWD.MB
  21.  
  22. P     Script        Do this tnc command before connecting.
  23. Q     Script        Do this tnc command after disconnecting.
  24. P!    Script        Do this DOS command before connecting.
  25. Q!    Script        Do this DOS command after connecting.
  26. C     Script        Connect to this call.
  27. L     Script        Do not forward if message larger than size given.
  28. N     Script        Connect to this call using NET/ROM.
  29. S     Script        Send this text.
  30. R     Script        Receive this text.
  31.  
  32.  
  33.        Format of the list header (O, X, E, F, H, !)
  34.  
  35. Columns     Data
  36.  
  37.   1        Header type from above table.
  38.   2        Port identifier or filler. "A" = COM1, "B" = COM2, etc.
  39.   3-4        Hour to activate this function.
  40.   5-6        Hour to de-activate this function.
  41.   7-12        Key used to select list with X or XI command.
  42.         For File type lists, the file name.
  43.         For forwarding lists, the callsign of the MailBox to
  44.         forward to, WITHOUT SSID.
  45.  
  46.  
  47. The file contains several kinds of information:
  48.  
  49.  
  50.      1) Connect Command scripts.
  51.  
  52. Command scripts are supported through C, L, N, P, Q, R, and S items.
  53. The command script precedes the E, F, or H list that uses it.
  54.  
  55.  
  56. P items give TNC commands to be executed BEFORE the connection:
  57.  
  58.      Pretry 10
  59.      Pmaxframe 3
  60.      Pfrack 8
  61.  
  62. Q items give TNC commands to be executed AFTER the disconnect:
  63.  
  64.      Qretry 3
  65.      Qmaxframe 7
  66.      Qfrack 3
  67.  
  68.  
  69. Be very careful using P and Q items. The MailBox assumes that the
  70. TNC is setup in a "standard" manner. If you change CR, CP, or SE
  71. in a script, it could cause problems.
  72.  
  73.  
  74. An L item is used to keep large messages from forwarding:
  75.  
  76. L 5000
  77.  
  78. Would cause any message larger than 5000 bytes to NOT forward.
  79.  
  80.  
  81. A C item gives the call and path to do the initial connection:
  82.  
  83.      CC W6NR-11
  84.      CC N7EQN-10 via A6DIG
  85.  
  86. N items gives the call and path to continue the connection using NET/ROM:
  87.  
  88.      NC W6NR
  89.      NC W6QRM v N6DIG
  90.  
  91. S and R items come in pairs:
  92. An S item is a line to send:
  93.  
  94.      SC WB6FFC-1
  95.  
  96. An R item is the expected response:
  97.  
  98.      R#SBAY1:N7EQN-10} Connected to #WWORM:WB6FFC-1
  99.  
  100. In the case that ANY response is valid use:
  101.  
  102.      R!
  103.  
  104. There can only be one C item in a script, but may be as many N, P, Q, R
  105. and S items as required. As an example, the script for W0RLI
  106. in Santa Cruz using NET/ROM to connect with KA6IQA in San Diego might
  107. be (using all the possible script features).
  108.  
  109.  
  110. L 2000              <-  Don't forward messages larger than 2K
  111. Pretry 10          <-  Tough path, retry a lot.
  112. Pmaxframe 3          <-  And don't send very many packets.
  113. Pfrack 8          <-  And wait a long time for ACK.
  114. Qretry 3          <-  Put things back to normal after this forward.
  115. Qmaxframe 7          <-  Ditto
  116. Qfrack 3          <-  Ditto
  117. CC W6AMT          <-  Connect to the local NET/ROM
  118. NC W6AMT-3          <-  Connect to the NET/ROM closest to KA6IQA
  119. NC KA6IQA v W6AMT-4      <-  Connect to KA6IQA
  120. FB0023KA6IQA          <-  Use port B. All hours. List name KA6IQA.
  121. KA6IQA              <-  Forward messages TO or AT KA6IQA
  122. 91*              <-  Forward zip codes starting with 91
  123. TIME$$              <-  Set date and time on KA6IQA's computer.
  124. *** EOF           <-  End of list marker. Must be upper case.
  125.  
  126.  
  127.      2) Routing lists.
  128.  
  129. E, F, and H lists are lists of stations for whom you should forward mail.
  130. They are grouped by the call of the MailBox to which the messages
  131. will be forwarded. Each list has a header line, any number of callsigns
  132. or sublists, and the list terminator ("*** EOF").
  133.  
  134. An "F" list is used when you wish to initiate forwarding.
  135.  
  136. An "H" list acts the same as an "F" list, except that the
  137. connect and probe for reverse forwaring will occur even
  138. if you do not have any messages to forward.
  139.  
  140. An "E" list acts like an "F" list, except the forwarding is not done,
  141. the list is used only when someone requests reverse forwarding from you.
  142.  
  143. Forwarding will occur at the minute given for the port in CONFIG.MB,
  144. on those hours given in FWD.MB.
  145.  
  146.  
  147.      3) Import / Export lists.
  148.  
  149.      There are two list types to move messages to or from files. The files
  150. must be in the MailBox directory. An "O" list will output the messages into
  151. a file. An "I" list will input messages from a file. There may be several
  152. messages in each export or import file. The end of a message is indicated
  153. by a line containing the text /EX.
  154.  
  155. Format modifiers may follow the file name.
  156.  
  157. Defined format modifiers are:
  158.  
  159. O - Use the old (WA7MBL) export/import format.
  160. 8 - Add an RFC-822 header before each message text.
  161. B - Include the BBS message headers.
  162.  
  163. If no modifier is given, then ONLY the message text is put into the file.
  164.  
  165. To "forward" messages TO the file MSG.OUT in old (WA7MBL) format :
  166.  
  167. Ox0023MSG.OUT O
  168. WA6XXX
  169. *** EOF
  170.  
  171. To "forward" messages TO the file MSG.OUT, with only RFC-822 headers
  172. and message text, (as might be used by a user written smtp interface):
  173.  
  174. Ox0023MSG.OUT 8
  175. WA6XXX
  176. *** EOF
  177.  
  178. To "forward" messages TO the file MSG.OUT,
  179. with RFC-822 headers, existing BBS headers, and message text :
  180.  
  181. Ox0023MSG.OUT D8
  182. WA6XXX
  183. *** EOF
  184.  
  185. To "forward" messages TO the file MSG.OUT, with only the message text :
  186.  
  187. Ox0023MSG.OUT
  188. WA6XXX
  189. *** EOF
  190.  
  191.  
  192. To "forward" messages FROM the file MSG.IN :
  193.  
  194. Ix0023MSG.IN
  195. *** EOF
  196.  
  197. MSG.IN must be in "old export/import format"
  198.  
  199.  
  200.      4)  smtp interface.
  201.  
  202. An "X" list exchanges ("forwards" and "reverse forwards") messages with smtp.
  203.  
  204. The second field is the smtp address.
  205.  
  206. Xx0023SMTP
  207. k3mc   mike@k3mc.norcal.us.ampr
  208. k6qrm  nerd@w6qrm.california.usa.hamnet
  209. *** EOF
  210.  
  211. The usual directories for smtp are used: SPOOL/MQUEUE and SPOOL/RQUEUE
  212.  
  213.  
  214.      5) DOS commands.
  215.  
  216.      A "!" list is a list of DOS commands. It acts very much like a .BAT file.
  217. The second character of the list header is ignored. The time window is honored.
  218. Be very careful what commands you use here; anything that might CHANGE one of
  219. the files used by the MailBox will cause TROUBLE! You must also run the MailBox
  220. in a partition large enough to allow for COMMAND.COM (23k) plus whatever
  221. commands you run.
  222.  
  223.      Example:
  224.  
  225. !B0023
  226. clock set
  227. *** EOF
  228.  
  229.  
  230.      6) Wildcards and special "callsigns" in lists.
  231.  
  232.  
  233. When the designator in FWD.MB is compared to the TO or @ BBS call,
  234. the characters "?" and "*" appearing in the designator act as
  235. wildcards. "?" will match any character. "*" causes the remaining
  236. characters to match.
  237.  
  238. For example: Using ZIP code routing, to route all South Carolina
  239. traffic to wa4szk, you would put "4*". Any message sent
  240. to a destination starting with "4" would route to wa4szk.
  241. wa4szk could then continue the routing breakdown by forwarding
  242. or "41*" to one station, or "42*" to another, etc.
  243.  
  244. The special "callsign" TIME$$ is used to "forward the current date and time".
  245. This feature is available only if the receiving system has the sending system
  246. marked as a BBS or remote sysop. Systems that support this feature identify
  247. with the "C" feature letter in their System ID.
  248.  
  249.  
  250.      7) Sublists.
  251.  
  252. At any place in the FWD.MB file you can refer to another file. In effect
  253. what happens is that the contents of the sublist are treated exactly
  254. as if they were in the FWD.MB file. This feature is very useful when
  255. you have several alternate paths to a given location. FWD.MB need only
  256. contain the connect information for the different paths. You can refer
  257. to a single file that contains the list of calls for forward. A sublist
  258. is given by a line starting with "@". The rest of the line is the device,
  259. path, and file name of the sublist.
  260.  
  261. Example:
  262.  
  263. CC N4CHV V N6MPW-1
  264. FC0023N4CHV
  265. N4CHV
  266. @C:\BBS\HF111.FWD
  267. @C:\BBS\SILICON.FWD
  268. *** EOF
  269. CC W6CUS-1 V W6AMT-10
  270. FD0023W6AMT
  271. NI6A
  272. @C:\BBS\SILICON.FWD
  273. *** EOF
  274.  
  275.      W0RLI MailBox and GateWay     Version 6.07 - 5/20/88   Page    8
  276.  
  277.      There is no limit to the number of lists or the number of
  278. calls in each list. Your MailBox will do the connect and send the
  279. messge onward. It will either delete it or mark it with 'F' status
  280. depending on the setting of the YES/NO (Kill on forward) flag in
  281. CONFIG.MB. Auto forwarding is attempted each hour at the minute
  282. specified in CONFIG.MB, or when you use the "X" command.
  283.  
  284.      The special call "*" (a single *) can be used to force the
  285. forwarding of all mail not addressed to the system owner. This
  286. could be used by someone who would like to run this software, but
  287. would not like to maintain an active MailBox. They would get all
  288. their own mail locally, but any mail deposited onto their system
  289. would be automatically forwarded.
  290.  
  291.      The forwarding of messages counts on the remote MailBox
  292. behaving correctly. It must have a prompt with '>' at the end
  293. of the last line. The command for sending messages must have the
  294. form "Sx call". It must prompt for message title, and then prompt
  295. for message text. Message text is terminated by ^Z (Control-Z).
  296.  
  297.  
  298.