This facility could be used, for example, to append a legal disclaimer at the end of each message leaving your company, to `renounce' the message contents as the view or opinion of the company. Alternatively, it could be used to prepend your company address.
The following example shows how MAILsweeper can be configured to append a legal disclaimer to every message leaving your company.
RESPONSE allow
RESPONSE allow_out PRIORITY 1
RESPONSE isjunkmail PRIORITY 1
RESPONSE copyadministrator PRIORITY 1
RESPONSE deny PRIORITY 2
FROM *@*
TO *@* allow ; Allow everything
FROM *@company.com
TO *@* allow_out ;add text to outgoing mail
FINISH ; End of rules
A RESPONSE
statement is also listed in the first section of the file, to
define the allow_out
<Response>.
[AMU]
AuthFile=C:\MSW\CONFIG\AUTHFILE.TXT
If=allow_out,direction=out,allow
The <Response>
generated by AMUcheck is checked, using the If
directive. If it is allow_out
an attribute called direction
is created, with a value out
.
The <Response>
is then reset to allow
. This is the actual <Response>
generated by AMUcheck. It allows the message to be delivered
normally1, assuming that no
higher priority <Response> is generated by one of
the plug-in validator instances.
[Disposal]
allow=Clean
The Clean
disposition has a corresponding configuration section in the same
file.
[Clean]
Edit=MessageOut
Deliver=
This configuration section controls the disposal actions taken.
The configuration
section lists an Edit
directive as one of its
actions. The value of the Edit
directive is the name
of an editing configuration section. In this example, the editing
configuration section is called MessageOut
.
![]() |
The Deliver
directive is used to deliver the message onwards to its
intended recipients.1 |
The editing configuration section controls the editing actions taken.
[MessageOut]
PerformIf=direction==out
AppendToBody=C:\MSW\CONFIG\disclaim.txt
The value of the direction
attribute is checked, as set in the [AMU]
configuration section (see the previous page).
If the direction
attribute has the value out
then the editing actions
are performed and the contents of the file specified by the AppendToBody
directive are added to the end of the message
body. In this example the file is called disclaim.txt.
The message, complete with added text, is then delivered onwards to its intended recipients.
![]() |
You could also add text to the beginning
of every outgoing message, for example, your company
address. This is achieved by including a PrependToBody
directive in the configuration section. |
[MessageOut]
PerformIf=direction==out
PrependToBody=C:\MSW\CONFIG\header.txt
AppendToBody=C:\MSW\CONFIG\disclaim.txt
This example will add the contents of header.txt to the beginning of the message body.
![]() |
See the
section on the Edit directive, page 7-34, for
more details. Also the Disposal section on page 7-22.
|
1 With the added facility of text
editing.
Copyright © 1998, Content Technologies Limited. All rights reserved.