![]() |
![]() |
![]() |
![]() |
The final special feature discussed in the chapter is not really unique to Razor per se but is actually just an extension of UNIX that can be implemented independently. It allows a site to arrange for incoming e-mail messages to be parsed and run as a series of UNIX commands, with the output being sent back to the originator of the message.
What Tower Concepts has done, however, is put together a series of scripts and methods which make the setup of this capability fairly straightforward. The mechanisms also provide for a modest level of security. The original intention was to provide a means of letting people at remote sites do queries on the Razor database through simple e-mail messages, but the scope can actually be much greater than that.
After the system has been put in place, the following sequence describes what happens when e-mail has been received.
razor-query: "|<fullpath to RAZOR_UNIVERSE>/Scripts/ rz_query" razor-admin: <local razor administrator>
... where the text within the brackets are expanded out as necessary. At a minimum, you will need to run the newaliases program to make the new aliases fully functional.
Each user that wishes to take advantage of this capability needs to run the script rz_mail_signup, supplying it with the expected e-mail address to be writing in from on the command line. This script sends a request to the razor-admin address (established above), asking that an entry be made in the trusted_users file. To get the latest copy of rz_query, users should run $RAZOR_HOME/scripts/rz_install_email_query.
Upon receipt of the e-mail'd request, it is up to the discretion of the razor administrator whether or not the user should be granted this level of access. The message details how to edit the file $RAZOR_LICENSE_DIR/trusted_users. As a courtesy, the administrator should e-mail back the resolution status of the request.
If at any point someone needs to be removed from the list of trusted users, it can be done through a simple edit of the $RAZOR_LICENSE_DIR/trusted_users file. The syntax of the file is fairly straightforward, but you can still refer to "trusted_users" on page 262.
Once you have followed the steps to this point, you will want to add one of the following commands to the body of the e-mail message:
RAZOR_GROUP=<group> razor_get <filename>
RAZOR_GROUP=<group> razor_co <filename>
RAZOR_GROUP=<group> razor_ci <filename> <include the body of the file to be checked in>2 RAZOR_FILE_END
![]() |
![]() |
![]() |
![]() |
(Part 4 of 4 for this section) (Generated 09/13/99 at 18:02:56) |
Copyright Tower Concepts http://www.tower.com Voice: 315-363-8000 Fax: 315-363-7488 support@tower.com sales@tower.com |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |