Navigation:  Exchange Server Toolbox > Configuration > Rules >

Actions

Previous pageReturn to chapter overviewNext page

Add text to the message subject*

Adds a specifies text to the beginning or the end of the message subject.

 

Add custom mail header*

Add a custom mail header like ''XMyHeaderFieldName: my header field value'

 

Add text to the message body*

Adds a specifies text to the beginning or the end of the message body (plain-text as well as HTML).

 

Save mail to folder*

Saves the message in RFC822 compliant format (like Outlook Express uses) as text file in the specified folder on your hard disk.

 

Save attachments to folder*

Saves all attachments from the mail to specific folder.

 

Delete attachments

Deletes all attachments of the message.

 

Modify recipients

This action can remove all recipients of the messages and/or add new recipients.
Use this action for redirecting mail by removing all recipients and adding the designated one.

 

Send auto reply message*
With this action you can make the Exchange Server Toolbox create an auto replay message with the text you specify.

 

Execute a file and pass the mail as parameter*
With this action you can call a file and pass the current mail as parameter to that file. If that file execution modifies the mail you are even able to reload that changes into the mail.

 

Execute a file and pass the attachments as parameter*
With this action you can call a file and pass the directory of the saved attachments as parameter to that file. If that file execution modifies the content of that directory you are even able to reload that changes into the mail.

For example you can extract all files from a zip-archive attachment with the following batch-file:
 
uinzip.exe %1 "%~dp1"

if NOT ERRORLEVEL 0 EXIT 1

cd %~dp1

del *.zip

if NOT ERRORLEVEL 0 EXIT 1
 

When you have two attached zip files, the batch-file would look like:
 

 uinzip.exe %1 %2 "%~dp1"

[...]

 

 

Do not deliver mail

Marks the message to be not delivered. So the Exchange Server will trash it.

 

Refuse mail (Exchange 2007/2010 only)

Use this action to reject mail messages with a reason (error code) you can specify.
This action is not available for Exchange Server 2003.

 

Do not apply other rules

Use this action to prevent the Exchange Server Toolbox to apply other rules after this one.

 

Delete mail from backup

Use this action to delete mail from backup.

 

Write specified text to file*

Writes user specified text to file. The text can be appended to the specified file, or the file will contain only the text written the last time.

 

 

*Usage of variables is possible:

 

templateEngine

 

With the integration of a Template engine in Exchange Server Toolbox, it is now possible to use variables in diverse actions. Almost everywhere, where an action needs a text parameter, you can use the "Add variable" button to add a variable, witch then will be evaluated at runtime.

 

Time

Current clock time ( format is system specific )

Date

Current date ( format is system specific )

Date and time

Current date and time ( format is system specific )

Remote IP

The IP of the server your Exchange Server got the mail from.

Delivery aborted

Indicates if the delivery of the mail was aborted - [true,false]

Refused

Indicates if the mail was refused by the server - [true,false]

Virus name

If the mail contains a virus, the value of the variable is the virus name

Has virus

Indicates if the mail has a virus - [true,false]

Is spam

Indicates if this is a spam mail - [true,false]

Spam report

Outputs the spam assassin spam report.

SCL value

For more information click here.

Backup path

The path, where the mails will be saved.

Spam score

The spam assassin value, rating the incoming mail as spam or no spam.

SMTP recipients

List of the SMTP recipients of the mail.

Size

The size of the mail (in KB).

Subject

Subject of the mail.

Sender

The sender of the mail.