Debian Codegraph @

doc/html/fmtforwa.htm

raw
1 <HTML>
2 <HEAD>
3 <TITLE>FORMAT of FORWARD.SYS</TITLE>
4 </HEAD>
5 <BODY BACKGROUND="/back_fbb.jpg">
6 <P>
7 <IMG SRC="/fbb.gif" WIDTH="32" HEIGHT="32">
8 <H1 ALIGN=Center>
9 FORWARD.SYS
10 </H1>
11 <P>
12 <PRE>
13
14 <BIG><B>FORWARD.SYS (\FBB\SYSTEM).</B></BIG>
15
16 I have divided this section in two parts:
17 1 : <A HREF="#Simple">Simple instruction (for first-time setup).</A>
18
19 2 : <A HREF="#Advanced">Advanced setup, with more details.</A>
20 2.1 : <A HREF="#Line">Line types.</A>
21 2.2 : <A HREF="#Definition">Definition of a forward-file.</A>
22 2.3 : <A HREF="#Include">Include-files.</A>
23 2.4 : <A HREF="#Automatic">Automatic forward to a file.</A>
24 2.5 : <A HREF="#End">End-of-file DOS-command specific to a port.</A>
25
26 <A NAME="Simple"><!-- --></A><B><BIG>Simple instruction (for first-time setup).</BIG></B>
27
28 This file is in SYSTEM directory. In this file all necessary data for
29 forwarding of messages are held. First I will give an example of a file that
30 contains the minimum of data that MUST be in FORWARD.SYS if you have forward
31 to only 1 other BBS, called LA2D in this example.
32
33 The file is organised in blocks, one block for each BBS we forward directly
34 to. A block starts with A (callsign) and ends with -------- We can have as
35 many blocks as we want in FORWARD.SYS.
36
37 A LA2D
38 #
39 P C
40 #
41 C C LA2D
42 #
43 B LA2D
44 F LA2D
45 #
46 ---------
47
48 All lines starting with a '#' are comments-lines, and are ignored by the
49 BBS. The first line must always start with the letter A, and next the
50 callsign of the BBS we want to forward to. Here: A LA2D
51
52 Then there must be a line telling on which port to start the forward.
53 This line must be there even if we only have 1 port.
54
55 In this example I use port C, which is the same as TNC 3 in my <A HREF="fmtport.htm">PORT.SYS</A>.
56 Command: P C
57
58 So I will send the connect-command to the TNC. That line must start with a C
59 before the actual connect-command. So if I call LA2D directly, I need to
60 write C C LA2D. (Only one C will not work). And lastly I must write which
61 messages I shall forward to that BBS. In this case I type only B LA2D, which
62 means all messages with @ LA2D, and F LA2D, which means all messages TO LA2D.
63 The forward-file must end with a string of -------. If you have more than one
64 BBS to forward to, you write all data for that BBS in a similar block in this
65 same FORWARD-SYS-file (starting with A, and ending with ----) right after
66 this block for LA2D.
67
68 You can also use one include-file for every BBS, but we will look at that
69 later in this sysop-documentation.
70
71 Well. I expect you do not want to forward only those messages that are TO
72 LA2D or @ LA2D (in this example), I expect you want to forward bulletins
73 also. Just include some lines starting with G, like G EU, G ALL, G WW etc in
74 the file. G EU means all bulletins addressed to @ EU. So may want to add this
75 in each file, like this:
76
77 A LA2D
78 #
79 P C
80 #
81 C C LA2D
82 #
83 B LA2D
84 F LA2D
85 #
86 G EU
87 G ALL
88 G WW
89 ---------
90
91 OK. Next you may want to forward messages through LA2D, that is not really
92 for LA2D, but that LA2D can forward on to this other BBS. These other BBSs
93 can be included in lines starting with a B, like B LA1G, B LA4O, B LA5G etc.
94 like this:
95
96 A LA2D
97 #
98 P C
99 #
100 C C LA2D
101 #
102 B LA2D
103 F LA2D
104 #
105 B LA1G
106 B LA4O
107 B LA5G
108 #
109 G EU
110 G ALL
111 G WW
112 ---------
113
114
115 Also, if you want to forward ALL messages for other SM-BBSs this way, you
116 can use wildcards (as in DOS) like B SM*, B SK*, B OH* etc. like this:
117
118 A LA2D
119 #
120 P C
121 #
122 C C LA2D
123 #
124 B LA2D
125 F LA2D
126 #
127 B LA1G
128 B LA4O
129 B LA5G
130 #
131 B SM*
132 B SK*
133 B OH*
134 #
135 G EU
136 G ALL
137 G WW
138 ---------
139
140
141 Well. Now the file is almost complete for most needs. We may want to add the
142 possibility to forward (on VHF or UHF) via several nodes. This is very easy,
143 as we just add another C C (callsign) line for each node we have to call. If
144 I must call first my local node LA7QR, next the local node of LA2D (LA1EAX-
145 7), and lastly LA2D, the complete file for LA2D will now look like this:
146
147 A LA2D
148 #
149 P C
150 #
151 C C LA7QR
152 C C LA1EAX-7
153 C C LA2D
154 #
155 B LA2D
156 F LA2D
157 #
158 B LA1G
159 B LA4O
160 B LA5G
161 #
162 B SM*
163 B SK*
164 B OH*
165 #
166 G EU
167 G ALL
168 G WW
169 #
170 R
171 #
172 ---------
173
174 I put in an R at the end. This forces my BBS to call LA2D BBS and ask him
175 for forward from him to me (reverse forward), even if I have nothing to
176 forward to him.
177
178 Well, this was a simple forward-file. There is a lot more we can do with
179 this file, so you should read <A HREF="#Advanced">Advanced setup</A> very carefully, I think you
180 will find all you need there. But you now have learnt the basics..
181
182
183 <A NAME="Advanced"><!-- --><!-- --></A><BIG><B>Advanced setup (with more details).</B></BIG>
184
185 The FORWARD.SYS file defines the setup of the various adjacent BBS's to
186 which we will route the mail. The file is organized in blocks, each block
187 being specific to a BBS. Only the adjacent BBS's should be defined.
188
189 This file and its includes are compiled at the BBS start-up and after
190 editing with the built-in editor, or return from the DOS Shell (AltF9 in
191 DosFBB) if one of the files has been modified.
192
193 If the FORWARD.SYS file or one of its includes has been modified all the
194 active messages are scanned, and new routings will be set according to the
195 updated file(s). The scanning can be stopped with AltF3. (Can be convenient
196 if the modification does not impact the routing.)
197
198 Every line of the file begins with a letter which defines the function of
199 the line. Any line beginning with a # is regarded as a comment and is
200 ignored.
201
202 <A NAME="Line"><!-- --></A><BIG><B>Line types :</B></BIG>
203
204 A (callsign)
205 All blocks must start with a line like this. The callsign is the callsign of
206 the BBS we will forward to.
207
208 B (callsign)
209 All blocks must include at least one line like this. Personal messages
210 addressed to somebody with address '@ (callsign)' will be forwarded.
211
212 C C (callsign1) [V DIGI1 DIGI2 ETC...]
213 The complete line of connection (C callsign V digi1 digi2) must follow the
214 letter C. In most cases, there will be two letters C successively, with a
215 space between them. The letter V, specifying a string of repeaters is
216 optional if PROMs TF4 (or equivalent) are used - see WA8DED.DOC. There may be
217 several lines C, in the case of cascaded connections (use of THENET, as per
218 an example). A line of conditional connection (enclosed between an IF and an
219 ENDIF) allows calls on preset times. Up to 8 lines are allowed, each line can
220 hold up to 80 characters.
221
222 In case of KA-node and X-connect, we can send C X (callsign). When connected
223 to a node, all command after the first C is actually sent to that node. Like
224 here, the X is sent too.
225
226 <FONT COLOR="#ff0000">Only for LinFBB and WinFBB</FONT>:
227 To forward with Telnet the syntax is:
228 C C &lt;callsign&gt; &lt;IP address&gt; [port]
229 IP-address is required, port is optional (default 23).
230
231 D (command)
232 Command to be performed by the DOS (transceiver frequency set, for example).
233 <FONT COLOR="#ff0000">For WinFBB:</FONT>
234 A separate DOS-window is opened, and the command performed there. The window
235 is closed when the command has been executed. In WinFBB the D (command) and
236 X (command) is identical.
237
238 <FONT COLOR="#ff0000">For DosFBB and LinFBB:</FONT>
239 The screen is saved before the command, and restored when done, thus enabling
240 screen access for this command. When running BAT files, a COMMAND.COM is
241 automatically first sent. That needs some more memory.
242
243 DC (command)
244 Same as D-command above, but executed when the connection is done.
245 This allows to change parameters or program a function when
246 the other BBS is connected. When the connection is made from another
247 BBS, the LC, DC and XC are executed if the BBS exists in forward file.
248
249 ELSE
250 Complementary conditional lines to the previous IF.
251
252 ENDIF
253 End of conditional lines defined by an IF.
254
255 F (callsign)
256 Callsign which will be automatically routed (except if a routing has been
257 specified) to the BBS which has been previously stated by a B line (must
258 follow a B line). There may be several F lines following a B line. If this
259 line is not preceded with a B line, then the bulletins will be routed on
260 their destination.
261
262 G (route)
263 Group routing indicator for bulletins (EU for example). This
264 indicator applies only to bulletins. The private messages are sent
265 according to the BBS indicator (see line B). There may be several routing
266 indication lines per adjacent BBS.
267
268 H (route)
269 Route definition using the hierarchical addressing mode. The wildcards (* or
270 ?) must be used to replace the missing part of the address as a function of
271 the destination. H-routing should be used as much as possible.
272
273 IF C1 ... IF C9
274 Conditional test of the route selection. The value for "n" is a figure, from
275 1 to 9, depending upon the selection. The first selection is 1, and the
276 maximum is 9. The lines located between the IF Cn and the ENDIF will be taken
277 into account only if the current selection is n. If the connection has not
278 been successful (remote BBS prompt not received), the selection number will
279 be incremented, and the block will be tested again if the port is still the
280 same. If the port is different, the block will be tested during the tests
281 related to the new port. If the connection is successful, the selection
282 number is reset at 1 for the next call, otherwise the selection number is
283 incremented. If all the selections failed, the selection number is reset at
284 1, the call is given up, and the system manages the next block.
285
286 IF D xx
287 Conditional test of the days of the week. This line defines a set of lines
288 which will be taken into account if the expression which defines the day(s)
289 following the IF is true. 0 corresponds to Sunday and six to Saturday. The
290 expression 'IF D 0,2,4-6' is true for Sunday, Tuesday, and Thursday to
291 Saturday. There can be several embedded IF's (indentation recommended), they
292 shall never expand outside a block. The ENDIF defines the end of the
293 conditional block.
294
295 IF H xx
296 Conditional test of the hour (IF). This line defines a set of lines which
297 will be taken into account only if the hour period following the IF is TRUE.
298 The hour period written in the format 0,4,12-23 is true at 0h, 4h, and for
299 the hours from 12h to 23h. There may be several IF conditions embedded
300 (indentation should be used), but never outside of the blocks.
301
302 IF FREE
303 Conditional test for the availability of a port. The test will be true if
304 none of the channels for the port is in use. This test can be a necessity
305 before the autoqsy of a transceiver as for an example. There can be several
306 embedded IF's (indentation is recommended), they shall never expand outside a
307 block. The ENDIF, defines the end of the conditional block.
308
309 IF MAN
310 Conditional test only true if forward has been asked manually by F4, FR or
311 FW commands.
312
313 IF N (number)
314 Tests on number-of-day in the month (1-31)
315
316 J (data means 7+ here)
317 J 0 : no data sent
318 J 1 : data is sent (default)
319 J 2 : personal data is sent
320 J 3 : only data is sent (exclusive)
321
322 K Channel
323 Forces forwarding to start on the specified channel. If the channel is busy,
324 forwarding will not start.
325
326 L (command) [value]
327 Parametres programming for the TNC. The parameters will be assigned to the
328 related channel. The syntax is the one of the TNC hostmode. Only the command
329 B (Paclen = packet size) has been supplied in all cases. B parameter must be
330 used with all TNCs (including KAM) to specify a paclen. The paclen is always
331 managed by the BBS software, as the different host modes are transparent to
332 the paclen. The PACLEN of the KAM should be 0/0 (256) to make the BBS paclen
333 work in all circumstances.
334
335 LC (command) [value]
336 Same as L-command above, but are executed when the connection is done.
337 This allows to change parameters or program a function when
338 the other BBS is connected. When the connection is made from another
339 BBS, the LC, DC and XC are executed if the BBS exists in forward file.
340
341 N (number)
342 Assigns the standard forward protocol (MBL/RLI) for the specified BBS.
343 1 = FBB forwarding allowed
344 2 = FBB+BIN forwarding
345 4 = FBB+BIN+Resume
346 8 = XFWD
347 Ex: N 15 = Sum of all protocols (default)
348
349 O (minutes)
350 Defines a timeout for the specified BBS. Timeout is expressed in minutes.
351
352 P (port)
353 Selects the port on which the connection is to take place. The port is
354 defined by a letter from A to H for the ports 1 to 8.
355
356 Q
357 Prevents the reverse forwarding from my BBS to take place.
358
359 R
360 Specifies that a call should be made to the adjacent BBS even if there is no
361 mail in queue, so as to trigger the reverse forwarding.
362
363 S Connect Failure Busy
364 It is a set of supplementary test in the case of sequential connections
365 (TheNet network for example). The 3 tests should be defined. The tests
366 "Connect" "Failure" and "Busy" are already defined in the software. Ex.:
367 S Conne Echec Occup. The software will interpret "Conne" like Connect,
368 "Echec" like Failure, and "Occup" like Busy. This allows to comply with nodes
369 messages which are not those commonly used by TheNet.
370 Up to 4 S lines (set of tests) can be defined in a forwarding block.
371 S line (choices of forward) now checks default as a last choice. Up to four
372 previous choices are checked as declared before. Warning, these tests are
373 case dependent.
374
375 T options
376 Definition of the maximum size for a file authorized to be forwarded, type
377 of messages and strategy. This line can be made conditional (between an IF
378 and an ENDIF).
379
380 T P : Send only personal messages
381 T S : Send smaller first (instead of older first)
382 T 2 : Send only messages less than, or equal to, 2 KB.
383 T D : Disable the feature of sending only 1 message from each
384 callsign in each forward-block
385
386 It is possible to combine one or more of these option like :
387
388 T P S 2 : means only private less or equal to 2 KB, smallest first.
389
390 In all cases, personal messages are forwarded first, bulletins next.
391
392 U ROUTE1 ROUTE2 ... (up to eight routes)
393 Give the priority when forwarding bulletins. Bulletins @ROUTE1 will be
394 forwarded first, then bulletins @ROUTE2, then other bulletins. It may be up
395 to eight specified routings. Private mail (including P, T and A messages) are
396 always forwarded first.
397
398 V (text)
399 Text sent on connection of the called BBS. (Mandatory on some TCPIP BBS to
400 declare the protocol in use). Allows sending callsign and password when
401 connecting to a phone BBS.
402
403 W
404 Command W allows to skip one or more prompts (default one) before starting
405 a forward session (mainly used when "Linked to ..." gives more than
406 one prompt)
407
408 X (command)
409 Command to be executed by DOS (Selection of a frequency, as for an example).
410
411 <FONT COLOR="#ff0000">For WinFBB:</FONT>
412 A separate DOS-window is opened, and the command performed there. The window
413 is closed when the command has been executed. In WinFBB the D (command) and
414 X (command) is identical.
415
416 <FONT COLOR="#ff0000">For DosFBB and LinFBB:</FONT>
417 The screen is not saved before the command, thus, the latter should not
418 access the screen. This command is identical to the D command, but it is
419 transparent and faster. When running BAT files, a COMMAND.COM is automatically
420 first sent. That needs some more memory.
421
422 XC (command)
423 Same as X-command above, but executed when the connection is done.
424 This allows to change parameters or program a function when
425 the other BBS is connected. When the connection is made from another
426 BBS, the LC, DC and XC are executed if the BBS exists in forward file.
427
428 Y
429 Automatic time update of PMS having the clock ability. (if SID looks like
430 [PMS-3.0-C$]). PMS is set with the local time.
431
432 Z route
433 NTS routing indicator for NTS messages. This routing indicator applies only
434 to messages of "T" type. Wildcards can be used to define masks. There may be
435 several routing indication lines per adjacent BBS.
436
437 ------ (string of dashes)
438 Defines the end of the block for the adjacent BBS. The block begins with an
439 A line.
440
441 ! Line
442 Defines an exception. Will be used with lines of types B, F, G, H. The
443 exception should always be set <B>before</B> the true condition statement. An
444 exception is always from the same type statement (you cannot have a !F
445 exception to a B line).
446 Ex:
447 ! B F6FBB Except for F6FBB BBS
448 B F* Forward to all the BBS which begin with an F
449 The number of the exceptions is not limited.
450
451 &lt; File
452 Include the file specified. The name of the file should be in the directory
453 SYSTEM or in one of its subdirectories.
454
455 #
456 Comment line.
457
458
459 <A NAME="Definition"><!-- --></A><BIG><B>Definition of the forward file :</B></BIG>
460
461 A forward file is made of a main file including a set of blocks, each block
462 corresponds to an adjacent BBS, that is to say that can be connected.
463
464 Definition of the minimum block :
465
466 A block will be an included file in the FORWARD.SYS file. It is always made
467 with a first line beginning with an A, defining the name of the adjacent BBS,
468 and of a last line made of a string of dashes. Inside this block, there will
469 be at least one P line (port used) a C line (connection request), and a B
470 line (destination BBS). An F line with the SYSOP callsign may follow the B,
471 enabling the automatic routing for his mail.
472
473 A FC1CDC
474 P A Port A
475 C C FC1CDC-1 F6FBB-5 connection line
476 B FC1CDC BBS desserved by FC1CDC
477 F FC1CDC callsign automatically forwarded to FC1CDC
478 --------
479
480 This type of block is well suited for PMS of BBS which do not support
481 automatic mail forwarding.
482
483
484 Example of a more complex block :
485
486 A FC1HAQ
487 #
488 G EU FC1HAQ will receive
489 G FRA the bulletins for those
490 G WW various routings.
491 G AMSAT
492 F AMSAT bulletins to AMSAT are also marked.
493 #
494 H *.NA All the H. routes which end
495 H *.SA with .NA, .SA
496 H *.EU and .EU
497 #
498 O 5 5 minutes timeout.
499 #
500 IF C1 1st choice parameters
501 P C
502 L B 250 Paclen is 250 bytes
503 L N 4 Retry 4
504 C C FC1HAQ-1 F6FBB-7 019301
505 ENDIF
506 IF C2 2nd choice parameters
507 P C
508 IF 8-17 from 8h to 17h
509 T 5 files of 5 kb Max.
510 ENDIF
511 L B 250 Paclen is 250 bytes
512 L N 4 Maxframe is 4
513 C C FC1HAQ-1 F6FBB-7 019002
514 ENDIF
515 IF C3 3rd choice parameters
516 P A port A is used
517 T P private mail only
518 C C F6FBB-2 Connection of the 1st Thenet.
519 C C FF6KUB-2 Connection of the 2nd Thenet.
520 C C FC1HAQ-1 Final connection.
521 ENDIF
522 #
523 B FC1HAQ Definition of the various
524 F FC1HAQ BBS routed by FC1HAQ and
525 F F6CQU of its SYSOPs and /or direct
526 # specified users.
527 B F6ABJ
528 F F6ABJ Other BBS and miscellaneous
529 # callsigns forwarded by FC1HAQ.
530 B F5LO
531 F F5LO
532 #
533 B G* other BBSs.
534 B ON*
535 B D*
536 B HB*
537 #
538 ------ End of the FC1HAQ block
539
540
541 <A NAME="Include"><!-- --></A><BIG><B>Include-files.</B></BIG>
542
543 It is possible to use include-files with FBB. In this way we can have a
544 very small FORWARD.SYS, with only the callsign of the BBSs to forward to, and
545 then we have another directory with all the forward-blocks. One file for each
546 BBS, for example. Just transfer one whole block (starting with A (callsign)
547 and ending with ------) to file, and put the filename in FORWARD.SYS with a
548 '&lt;' in front of it, like this:
549
550 Example of FORWARD.SYS file with include-files.
551
552 #
553 # FORWARD FILE F6FBB
554 # ------------------------
555 #
556 # UHF
557 #
558 &lt; FWD\FE6BIG
559 &lt; FWD\FC1GJC
560 &lt; FWD\FF6KNI
561 &lt; FWD\FC1HAQ
562 &lt; FWD\F1EBV
563 &lt; FWD\FD1JGK
564 &lt; FWD\EA3BKZ
565 #
566 # PMS
567 #
568 &lt; FWD\FD1CDC
569 &lt; FWD\FD1MEU
570 &lt; FWD\FD1OAC
571 &lt; FWD\F8PD
572 &lt; FWD\F6HED
573 &lt; FWD\FE1JYH
574 &lt; FWD\F1LMI
575 #
576 # HF
577 #
578 &lt; FWD\LA1B
579 &lt; FWD\LA6CU
580 &lt; FWD\SV1IW
581 &lt; FWD\4X1RU
582 &lt; FWD\RS3A
583 &lt; FWD\I7XGL
584 &lt; FWD\EA8AML
585 &lt; FWD\EA8RT
586 #
587 # VHF
588 #
589 &lt; FWD\F6CDD
590 #
591 # FILES
592 #
593 &lt; FWD\AMSAT
594 &lt; FWD\MAIL
595 #
596 # Back to the park frequency.
597 #
598 P B
599 IF 0-3,21-23
600 X ICOM A2E8 M14
601 ELSE
602 X ICOM A2E8 M4
603 ENDIF
604
605
606 Example of an include file FWD\EA8RT
607 ------------------------------------
608
609 A EA8RT
610 #
611 G EU
612 G ALL
613 G AMSAT
614 G WW
615 G EA
616 G EANET
617 G LATNET
618 #
619 P B
620 #
621 O 2
622 #
623 L T 20
624 L B 80
625 L O 2
626 L P 100
627 L F 2
628 L @T2 20
629 #
630 #
631 IF 7-22
632 X ICOM A2E8 M6
633 C C EA8RT-2
634 ENDIF
635 #
636 B EA8RT
637 F EA8RT
638 F E?1*
639 F E?4*
640 F E?7*
641 F E?8*
642 #
643 B E?1*
644 #
645 B E?4*
646 #
647 B E?7*
648 #
649 B E?8*
650 #
651 ----
652
653
654
655 <A NAME="Automatic"><!-- --></A><BIG><B>Automatic forward to a file.</B></BIG>
656
657 It is interesting to allow automatic routing of messages or bulletins to a
658 file, for further processing, archive, or communication between BBSs which
659 co-exist in the same computer. The communication can be made through files.
660 The incoming mail file (see <A HREF="fmtinit.htm">INIT.SRV</A>) is tested once every minute; in case of
661 existence, the mail it contains is imported into the BBS.
662
663 On the other hand, a file can be defined in a forward block and updated once
664 every 15 minutes. This file is defined in a block of forward identical to the
665 forward between BBSs, the port being @ and the connection line given the name
666 of the file created or updated. The name of the BBS (possibly dummy) used
667 will be declared in <A HREF="fmtbbs.htm">BBS.SYS</A>, of course.
668
669 Example of a forward to a file (forward to the file B:MAIL.FBB of my own
670 private mail) :
671
672 A MAIL
673 P @
674 C B:\MAIL.FBB
675 B F6FBB
676 F F6FBB
677 ------
678
679
680 <A NAME="End"><!-- --><!-- --></A><BIG><B>End-of-file DOS command specific to a port.</B></BIG>
681
682 Each DOS command (D or X line) defined out of a forward block will be run
683 only if the forwarding port matches with the last port selection.
684
685 Example :
686
687 You use the autoqsy capabilities of your HF transceiver with a special
688 program named "ICOM". To be sure to return to your standby frequency, you
689 must set your frequency at the end of the forward file, only if the forward
690 applies to the HF port. You only have to select the port before running the
691 DOS command.
692
693 B xxxxxx
694 #
695 ------- End of last forward block
696 #
697 P D Select HF port (port D)
698 X ICOM A3E8 M12 Send the DOS command ICOM with its
699 # arguments if the file is scanned for
700 # D port. IF and ENDIF are allowed.
701
702
703 <A HREF="doc.htm"><IMG SRC="/contents.gif" WIDTH="108" HEIGHT="28"></A>
704
705 <A HREF="/"><IMG SRC="../button_home.gif" WIDTH="90" HEIGHT="29"></A>
706
707 <FONT COLOR="#800000">This page was last updated <!--#config timefmt="%d-%b-%y"--><!--#echo var="LAST_MODIFIED"--></FONT>
708
709 </PRE>
710 </BODY></HTML>