A macro is a fill element used in event notification templates. In the text of a notification generated based on the template, the macro is replaced with a certain value.
Macro syntax: %MACRO_NAME%
The table below describes the macros that you can use in the text of event notifications.
Macros for event notification templates
Macro |
Description |
Event for which the macro is used |
---|---|---|
%SERVER_NAME% |
Mail server name. |
antiVirusBasesOutOfDate, antiVirusBasesObsolete, antiSpamBasesOutOfDate, antiSpamBasesObsolete, messageBackupFailed, severalMessagesBackupFailed, severalBackupCleanupAttemptsFailed, backupAlmostFull, licenseExpiresSoon, licenseExpired, licenseBlacklisted |
%PRODUCT_NAME% |
Program name. |
antiVirusBasesOutOfDate, antiVirusBasesObsolete, antiSpamBasesOutOfDate, antiSpamBasesObsolete, messageBackupFailed, severalMessagesBackupFailed, severalBackupCleanupAttemptsFailed, backupAlmostFull, licenseExpiresSoon, licenseExpired, licenseBlacklisted |
%BASES_ISSUE_DATE% |
Release date of Anti-Virus databases or Anti-Spam databases. |
antiVirusBasesOutOfDate, antiVirusBasesObsolete, antiSpamBasesOutOfDate, antiSpamBasesObsolete |
%OUTDATED_DAYS% |
Number of days that have passed since the last update of Anti-Virus databases or Anti-Spam databases. |
antiVirusBasesOutOfDate, antiVirusBasesObsolete, antiSpamBasesObsolete |
%OUTDATED_HOURS% |
Number of hours that have passed since the last update of Anti-Spam databases. |
antiSpamBasesOutOfDate |
%SMTP_MESSAGE_ID% |
Message header. |
messageBackupFailed, scanStatusAlertForAdmin, scanStatusAlertForOthers |
%MESSAGES_COUNT% |
Number of messages that were not able to be placed in Backup or the total number of messages in Backup. |
severalMessagesBackupFailed, backupAlmostFull |
%MINUTES% |
Amount of time spent attempting to place messages in Backup or attempting automatic deletion of messages from Backup. |
severalMessagesBackupFailed, severalBackupCleanupAttemptsFailed |
%ATTEMPTS% |
Number of attempts to automatically delete messages from Backup. |
severalBackupCleanupAttemptsFailed |
%MESSAGES_SIZE% |
Total size of messages in Backup, in megabytes. |
backupAlmostFull |
%MAX_BACKUP_SIZE% |
Maximum size of Backup. |
backupAlmostFull |
%LICENSE_NUMBER% |
Key linked to the license. |
licenseExpiresSoon, licenseExpired, licenseBlacklisted |
%EXPIRATION_DAYS% |
Number of days until license expiration. |
licenseExpiresSoon |
%EXPIRATION_DATE% |
License expiration date. |
licenseExpired |
%SENDER% |
Message sender address. |
scanStatusAlertForAdmin, scanStatusAlertForRecipient, scanStatusAlertForOthers |
%ALL_RECIPIENTS% |
Addresses of all recipients of the original message. |
scanStatusAlertForAdmin, scanStatusAlertForSender, scanStatusAlertForOthers |
%AFFECTED_RECIPIENTS% |
Addresses of the original message recipients affected by the event described in the notification. |
scanStatusAlertForAdmin, scanStatusAlertForOthers, messageBounce |
%AFFECTED_RULES% |
Rules for processing the original message that were affected by the event described in the notification. |
scanStatusAlertForAdmin, scanStatusAlertForOthers |
%MESSAGE_ID% |
Identification number of the message within the program. |
scanStatusAlertForAdmin, scanStatusAlertForOthers |
%SUBJECT% |
Subject of an original message. |
scanStatusAlertForAdmin, scanStatusAlertForSender, scanStatusAlertForRecipient, scanStatusAlertForOthers |
%DATE% |
Message processing date. |
scanStatusAlertForAdmin, scanStatusAlertForSender, scanStatusAlertForRecipient, scanStatusAlertForOthers |
%MESSAGE_ACTION% |
Action performed on the message by the program. |
scanStatusAlertForAdmin, scanStatusAlertForSender, scanStatusAlertForRecipient, scanStatusAlertForOthers |
%DATA_BEGIN% |
Service macro for designating the beginning of the list of macros for an attachment. |
scanStatusAlertForAdmin, scanStatusAlertForSender, scanStatusAlertForRecipient, scanStatusAlertForOthers |
%DATA_END% |
Service macro for designating the end of the list of macros for an attachment. |
scanStatusAlertForAdmin, scanStatusAlertForSender, scanStatusAlertForRecipient, scanStatusAlertForOthers |
%OBJECT_NAME% |
Attachment name. |
scanStatusAlertForAdmin, scanStatusAlertForSender, scanStatusAlertForRecipient, scanStatusAlertForOthers |
%OBJECT_SIZE% |
Attachment size. |
scanStatusAlertForAdmin, scanStatusAlertForSender, scanStatusAlertForRecipient, scanStatusAlertForOthers |
%STATUS% |
Message status. |
scanStatusAlertForAdmin, scanStatusAlertForSender, scanStatusAlertForRecipient, scanStatusAlertForOthers |
%OBJECT_ACTION% |
Action performed on the attachment by the program. |
scanStatusAlertForAdmin, scanStatusAlertForSender, scanStatusAlertForRecipient, scanStatusAlertForOthers |
Page top