home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Boston 2
/
boston-2.iso
/
DOS
/
HILFEN
/
MODEM
/
SALES
/
MISC.XXX
/
TX2MB220.ZIP
/
SAMPLE.MSG
< prev
next >
Wrap
Text File
|
1991-03-10
|
2KB
|
73 lines
This is a sample textfile message to show the use textfile control of
message header information.
If you specify -n on the commandline or in the SET TXT2MSG=, then the
following lines *will* show up in the message body and will *not*
effect the message header. For these control lines to be of use, you
should *not* specify -n on the commandline or SET TXT2MSG= statement.
Note the use of 'v' and '^' are for reference only:
vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv (header control lines start here)
TO: ALL
FROM: SYSOP
SUBJECT: TXT2MSG Test Message
NOECHO:
PUBLIC:
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ (header control lines end here)
If you want the message to be R/O (private), you would specify:
PRIVATE:
If you wanted the message to be echoed, you would have:
ECHO:
To make the message to/from someone else:
TO: SYSOP
FROM: TXT2MSG
Note that header control lines are processed sequentially through the
text file. As such, if this message were imported in this state
(without the -n switch), it would be:
To: SYSOP R/O (Private)
From: TXT2MSG Echo ON
Subject: TXT2MSG Text Message
If this message were imported with the -n switch, the header control
(to, from, subject, etc) would be entirely up to the commandline.
Try importing this message with and without the -n option. Those
without the -n will be controlled by the text within the message,
while messages imported with the -n switch will have them in the body
and not effect the header.
Note that header control lines (such as the "TO: ALL" line) do not
appear in the message body if they are valid and used for the header.
No need having the information twice, eh?
Another feature which can be shown in this example is the blank line
compression. Following this line are ten blank lines:
When TXT2MSG imports this file, those ten blank lines will be
compressed into TWO blank lines. TXT2MSG allows no more than two
blank lines in a row -- this is useful if importing documentation or
other text with a large amount of blank space involved.
If you come up with any fancy or neat uses for TXT2MSG, pass them
along. If you include a sample batchfile, I'll see about including it
as an example in a later release!
Robert Vostreys, FTL Sysop