home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ARM Club 3
/
TheARMClub_PDCD3.iso
/
hensa
/
internet
/
fidomail_1
/
!FidoMail
/
Dox
/
ExpandInfo
< prev
next >
Wrap
Text File
|
1994-02-17
|
5KB
|
133 lines
About the expanded strings: Footer, Quote, TearLine & Origin.
These are defined in the !Config file, in one of 4 ways:
Type 1: "" or not defined at all
Type 2: "<string>"
Type 3: "%File:<filename>"
Type 4: "%List:<filename>"
Type 1:
This will not insert anything in your messages, not even empty lines. To get
empty lines, use " " (a space). The Origin text must not be empty, so a text
is mandatory. The TearLine text can be empty (giving only '--- '), but if it
is undefined, it will revert to 'FidoMail v.<version> (<date>)'.
Type 2:
This will insert the given string into your messages, after expanding it
according to the rules below.
Type 3:
This command causes redirection to the named file. A random line is read from
the file, and then processed as a new command, which may be of types 1-4.
Type 4:
Another type of redirection. This is like type 3, but it is not a random line.
Instead, the line read will depend on the area you are writing the message to.
Each line should start with '<area>:', e.g.
'ARCHIMEDES:%File:<FidoMail$Dir>.Domains.Fidonet.Misc.ArcFooters'
This will take a random line from that file when writing messages in the
Archimedes area. Special areas are '<NET>', '<JUNK>', and '<ALL>'.
If '<ALL>' is met before the area could be found, that line will be used.
Then, finally, when a normal string is remaining, it will be expanded.
This process is controlled by putting %-variables in the string. A %-variable
consists of a % and one or more letters, which will then be replaced by some
part of the message.
Currently recognised fields are:
Field: Replaced by:
%t To (The receiver of the message)
%t1 To (first name)
%t2 To (surname)
%s The subject of the message
%d The date of the message (the original, if writing a reply)
%c The time of the message (otherwise as %d)
%q The person you are quoting (usually the same as %t)
%q1 The person you are quoting (first name)
%q2 The person you are quoting (surname)
%a Quote header: The area in which the quoted message belongs.
Footer: The area in which your new message is.
%i Same as %a except this is the actual fido-identifier for the area.
%% %
Examples:
---------
--> Generating a random footer from a file of footers.
------------------------------------------------------
Make sure the footer-file contain single-line footers (not too long)
separated by LF (!). Put the file in the 'Misc' directory inside !FidoMail
for convenience. Let's say it is called 'Footers'.
In the !Config file, you would write:
Footer "%File:<FidoMail$Dir>.Domains.FidoNet.Misc.Footers"
--> Generating a different Origin line for each area.
-----------------------------------------------------
If, for example, you have 7 areas speaking different languages, you could make
a file like this:
<NET>:
ARCHIMEDES:Point Blank
ARCCOMMS:A Pointless Point
ARCPROG:Point of No Return
ZAKE:Beze mel yrk Point krutzfer heno
TEUSCH:Point "Boom Thscak"
UMBA:Hrunga okosa Urapun
Put it in the Misc directory as before, named 'Origins'
Then, in the !Config file, write:
Origin "%List:<FidoMail$Dir>.Domains.Fidonet.Misc.Origins"
The first area, which is netmail, would have no string, as there's no * Origin
line on netmails. Each of the other 6 areas will have their own origin line.
--> Generating random footers in several languages.
---------------------------------------------------
This is done as a combination of the above.
If, for example, you have 2 footer-files, imaginatively called 'FootersUK' and
'FootersDK', containing footer-lines in English and Danish.
First, the !Config file should read:
Footer "%List:<FidoMail$Dir>.Misc.FooterPtr"
The 'FooterPtr' file should consist of 1 line per area:
<NET>:=== My Point - Mit Point ===
ARCHIMEDES:%File:<FidoMail$Dir>.Domains.FidoNet.Misc.FootersUK
ARCCOMMS:%File:<FidoMail$Dir>.Domains.FidoNet.Misc.FootersUK
ARCPROG:%File:<FidoMail$Dir>.Domains.FidoNet.Misc.FootersUK
LOKALA:%File:<FidoMail$Dir>.Domains.FidoNet.Misc.FootersDK
LOKALQ:%File:<FidoMail$Dir>.Domains.FidoNet.Misc.FootersDK
The first line is in both languages for netmails, but could simply be empty
to get no footers on netmails. The next 3 areas have English footers, and the
last 2 have Danish ones. Any other areas will have no footer, since there is no
'<ALL>:' line.
--> Interresting quoting.
-------------------------
You could have a selection of Quote-headers in a file and select one at random.
The file could contain:
Quoting %q:
Well, %q, %d you said:
I suddenly saw %q writing:
%q said this about '%s':
Allow me to quote %q:
... and so on.
So, as you see, the % fields will be replaced by the relevant data as described
above. You can combine this with the previous example to get both quote-headers
and footers in different languages (or to suit different moderators :-).