home *** CD-ROM | disk | FTP | other *** search
- # External user-defined commands.
- #
- # This is where you can define your own Mailserver commands. This means
- # you can perform almost any AmigaDos command or script by email commands.
- #
- # All commands should send their output to stdout, which will then be
- # redirected to the outgoing e-mail.
- #
- # User defined commands can be stored in the mailserver:sys/usr directory
- # to separate them from essential mailserver files in the sys directory.
- #
- # IMPORTANT!!!
- # ============
- #
- # You should be VERY careful about how you define commands, as you could
- # give users access to all the files on your hard disk. For instance,
- # letting users 'search' all your files would give them access to your
- # passwords.
- #
- # You have been warned! I don not accept any responsibility for ANY damaged
- # caused by the use of Mailsrver.
- #
- # To define a command, enter the name of the command followed by a space,
- # followed by the AmigaDos command to be executed by the command.
- #
- # You can use the following symbols in the AmigaDos command:-
- #
- # %s The arguments sent to the command.
- # $msg The name of the incoming command file.
- #
- # Below is an example of a simple use. It Defines a command 'AMINETSEARCH'
- # which can allow users to search your Aminet index files for a specific
- # string. (If you have a complete index file, it might take some time!)
- ## (See the script mailserver:sys/usr/aminetsearch)
-
- AMINETSEARCH rx mailserver:sys/usr/aminetsearch %s
-
- # The following command copies the incoming mail file to a public directory.
- # Note the use of $msg to indicate the incoming mail filename.
- # (See mailserver:sys/usr/put)
-
- PUT rx mailserver:sys/usr/put $msg %s
-
- #
- # E-mail me if you come up with any really useful external commands, and
- # I might include them in the next release.
- # END
-
-
-