Download MDaemon Email Server 10.0 - User Manual

Transcript
Accounts Menu
331
See:
Auto Responders » Accounts
327
Auto Responders » White List
329
Creating Auto Response Scripts
331
Account Editor » Auto Responders
304
5.2.2.4 Creating Auto Response Scripts
Auto response scripts are text files that define the messages that are returned as the
result of an auto-response event. These scripts are constructed as plain ASCII text
files ending with the "*.rsp" file extension. When an auto response script is triggered
by an auto responder, the script file is processed and scanned for macros, which will
then be replaced by actual data from the incoming message that triggered the
response. Lines beginning with the "#" character are ignored and are used for
comments.
There are several samples of scripts listed below, and there are several generic " *.rsp"
files provided for you in MDaemon's \app\ folder.
Auto Response Script Macros
$HEADERS$
This macro will be replaced by all of the incoming
message's headers. Text immediately preceding this
macro will be duplicated at the start of each
expanded line.
$HEADER:XX$
This macro will cause the value of the header
specified in place of " xx" to be expanded in the
message. For example: If the incoming message has
"TO: [email protected]" then the $HEADER:TO$
macro will expand to "[email protected]". If the
original message has "SUBJECT: This is the
subject" then the $HEADER:SUBJECT$ macro would
be replaced with the text "This is the subject".
$BODY$
This macro will be replaced by the entire message
body. In an attempt to preserve character sets for
different languages, MDaemon will read the message
body as binary data rather than pure text, thus
allowing a byte-for-byte copy of the message
body.
$BODY-AS-TEXT$
Like the $BODY$ macro, this macro will be replaced
by the entire message body, but as text rather than
binary. Text immediately preceding this macro will be
duplicated at the start of each expanded line. So,
using ">>$BODY-AS-TEXT$" in a script would place
Copyright © 2008. All rights reserved. Alt-N Technologies, Ltd.