What variables can I use in MailMarshal Exchange 7.X?


This article applies to:

  • Trustwave ECM/MailMarshal Exchange 7.X

Question:

  • What variables can I use in MailMarshal Exchange 7.X?

Information:

The following is a list of variables that can be used in the email templates, message stamps, and logging classifications in MailMarshal Exchange 7.X:

Note:

  • Variables are marked with curly braces { }.
  • Additional date formatting sub-variables are listed in the User Guide or Help.

Variable Data inserted
{$MessageDigestTableHTML} The HTML version of a message digest detail listing. See also {MessageDigestTableText}. See the User Guide or Help for options.
{Administrator} Email address of the administrator as set on the General tab of Server Properties.
{AttachmentName} File name of the attached file that triggered a rule condition.
{Date} The current date. See also "Date Formatting" in the User Guide or Help.
{DateLastRun} The date of the previous MailMarshal message digest for a folder.
{Errorlevel} The last error returned by a virus scanner or an external command.
{ExternalCommand} The name of the last External Command used.
{Env=varname} Inserts the value of a Windows environment variable.
{ExternalSender} Returns 'y' or 'n' depending on whether the sender was outside or inside the "allowed to relay" space.
{File=fullpath} Inserts a text file within the body of a message (for instance, can be used to insert the MailMarshal log for a message in a notification email body).
{Folder} The name of the folder that is the subject of a MailMarshal message digest email.
{FolderRetention} The retention period for a folder that is the subject of a MailMarshal message digest email.
{From} Email address in the 'From' field of the message.
{HasAttachments} Returns '1' if the message has attachments.
{Hostname} The host name of the server.
{If variable}...[{else}...]{endif} Allows conditional substitution of text. The condition is true if the variable is not empty. For example: {If VirusName} This message contained the virus {VirusName}.{endif} The Else clause is optional.
{InitialMessageBody} The first 200 characters of the body of the message.
{Install} The install location of MailMarshal.
{LastTextCensorRuleTriggered} The name of the TextCensor Script that was run and the phrase that triggered.
{LocalRecipient} The message recipient, if any, within the local domains. Includes multiple recipients and CC recipients.
{LocalSender} The message sender, if any, within the local domains.
{LogName} The name of the Logging Classification used.
{Message-ID} Original SMTP Message ID of the message.
{MessageFullName} Full path to the message file.
{MessageCount} The number of messages quarantined for a user in a specific folder and listed in a message digest email.
{MessageDigestTableText} The plain text version of a message digest detail listing. See also{$MessageDigestTableHTML}.
{MessageName} Filename only of the message.
{MessageSize} The size of the message as originally received.
{Recipient} Message recipient. Includes multiple recipients and CC recipients.
{ReleasePassThrough} Inserts a code recognized by MailMarshal to release the message applying no further rules.
{ReleaseProcessRemaining} Inserts a code recognized by MailMarshal to release the message applying any additional applicable rules.
{RemoteDomainName} The name of the domain on the remote machine.
{ReplyTo} Email address in the 'Reply to' field of the message.
{ReturnPath} SMTP "Mail From" email address.
{RuleTitle} The title of the rule triggered by the message.
{Sender} Email address of the sender. Uses the address in the "From" field unless it is empty, in which case the "Reply to" address is used.
{SsmUrl} The URL of the MailMarshal Quarantine Management Web site.
{StrippedFiles} The names of any attachment files stripped from the message by rule action.
{Subject} Message subject, decoded if applicable. Use this variable in most cases. See also {RawSubject}.
{ThreadWorking} The MailMarshal working folder name.
{Time} The current time. See also "Date Formatting" in the User Guide.
{UnsubscribeUrl} The URL used to unsubscribe from digests. This variable can be used in digest templates. The variable evaluates blank if a user cannot unsubscribe. Suggested usage:
{if UnsubscribeUrl}To unsubscribe from this digest, use the following link: {UnsubscribeUrl} {endif}
{VirusName} Name of the virus detected. This information is only available if the virus scanner being used is a DLL based scanner. If a command line scanner reports a virus this variable is set to "Unknown."
{VirusScanner}

Name of the virus scanner used.


Last Modified 12/12/2010.
https://support.trustwave.com/kb/KnowledgebaseArticle14024.aspx