home *** CD-ROM | disk | FTP | other *** search
/ Amiga Plus Extra 1997 #5 / AmigaPlus_Extra-CD_5-97.iso / online-tools / mail / mailserver / sys / externals < prev    next >
Encoding:
Text File  |  1995-04-08  |  1.7 KB  |  50 lines

  1. # External user-defined commands.
  2. #
  3. # This is where you can define your own Mailserver commands. This means
  4. # you can perform almost any AmigaDos command or script by email commands.
  5. #
  6. # All commands should send their output to stdout, which will then be
  7. # redirected to the outgoing e-mail.
  8. #
  9. # User defined commands can be stored in the mailserver:sys/usr directory
  10. # to separate them from essential mailserver files in the sys directory.
  11. #
  12. # IMPORTANT!!!
  13. # ============
  14. #
  15. # You should be VERY careful about how you define commands, as you could
  16. # give users access to all the files on your hard disk. For instance,
  17. # letting users 'search' all your files would give them access to your
  18. # passwords.
  19. #
  20. # You have been warned! I don not accept any responsibility for ANY damaged
  21. # caused by the use of Mailsrver.
  22. #
  23. # To define a command, enter the name of the command followed by a space,
  24. # followed by the AmigaDos command to be executed by the command.
  25. #
  26. # You can use the following symbols in the AmigaDos command:-
  27. #
  28. # %s     The arguments sent to the command.
  29. # $msg   The name of the incoming command file.
  30. #
  31. # Below is an example of a simple use. It Defines a command 'AMINETSEARCH'
  32. # which can allow users to search your Aminet index files for a specific
  33. # string. (If you have a complete index file, it might take some time!)
  34. ## (See the script mailserver:sys/usr/aminetsearch)
  35.  
  36. AMINETSEARCH rx mailserver:sys/usr/aminetsearch %s
  37.  
  38. # The following command copies the incoming mail file to a public directory.
  39. # Note the use of $msg to indicate the incoming mail filename.
  40. # (See mailserver:sys/usr/put)
  41.  
  42. PUT rx mailserver:sys/usr/put $msg %s
  43.  
  44. #
  45. # E-mail me if you come up with any really useful external commands, and
  46. # I might include them in the next release.
  47. # END
  48.  
  49.  
  50.