Sambar Server Documentation
|
Mail Routing Rules
Pro Server Only |
Overview The WebMail interface provides a mechanism that allows users to automatically route mail messages to folders or CGI scripts as well as forward and delete mail messages. Routing rules allow wild-card pattern matching based on Subject, To, From, Cc mail headers. The CGI script execution follows the same mechanism as POST scripts executed from an HTTP server. The CONTENT_LENGTH environment variable is set indicating the mail message content length that is passed to the script via stdin. In addition, there are several other environment variables set that correspond with the mail message: MBOX, TO, FROM, CC, MIME, REPLYTO, SUBJECT. The following perl script demonstrates how to process a mail message.
|