The following table describes the Server variables you can at certain places within the system.
Please be aware that not all variables are applicable or available for all areas of the server.
Variable |
Returns |
%%From%% |
whole From header of the message |
%%From_Email%% |
first email address from the From header |
%%From_Alias%% |
alias part of the first email address from the From header |
%%From_Domain%% |
domain part of the first email address from the From header |
%%From_Name%% |
name taken from the From header |
%%To%% |
whole To header of the message |
%%To_Email%% |
first email address from the To header |
%%To_Alias%% |
alias part of the first email address from the To header |
%%To_Domain%% |
domain part of the first email address from the To header |
%%To_Name%% |
name taken from the To header |
%%Sender%% |
sender of the message (whole content of MAIL FROM: command, even with < and >) |
%%Sender_Email%% |
email address of the sender (without < and >) |
%%Sender_Alias%% |
alias part of senders email address |
%%Sender_Domain%% |
domain part of senders email address |
%%Recipient%% |
list of all recipients delimited with semicolon ((whole content of RCPT TO: commands, even with < and >) |
%%Current_Recipient%% |
email address of the current recipient - the address of the account being processed |
%%Recipient_Email%% |
email address of first recipient of the message |
%%Recipient_Alias%% |
alias part of email address of first recipient of the message |
%%Recipient_Domain%% |
domain part of email address of first recipient of the message |
%%Extension%% |
Extension of the recipient email address containing the extension separator |
%%ExtensionNoSep%% |
Extension of the recipient email address without separator |
%%Subject%% |
Subject of the message |
%%Message-ID%% |
Message-ID of the message (even with < and >) |
%%Date%% |
current date |
%%Time%% |
current time |
%%Header%% |
all headers of the message |
%%Body%% |
body of the message in plain text |
%%Body MaxSize%% |
body of the message in plain text limited to MaxSize |
%%Body_HTML%% |
body of the message in HTML (if any) |
%%Body_HTML MaxSize%% |
body of the message in HTML limited to MaxSize (if any) |
%%Size%% |
size of the message in kB |
%%IP%% |
IP address of the sender |
%%UniqueID%% |
Unique ID string (md5 random hash) |
%%RFC822_Date%% |
date and time of message arrival in RFC822 format, based on server time and GMT offset |
%%AttachmentNames%% |
names of the attachments delimited with semicolon |
%%Header HeaderItem%% |
particular message header. |
%%Include FileName%% |
includes content of the filename. Please see the example at the end of this file |
%%Include_Base64 FileName%% |
includes filename in Base64 encoding. Please see the example at the end of this file |
%%MessageFile%% |
filename (.tmp or .imap file) storing actual content of the message |
%%Copy HeaderItem Position Length%% |
copy Length characters of HeaderItem from Position |
%%Delete HeaderItem Position Length%% |
delete Length characters of HeaderItem from Position |
%%FormatDateTime Format%% |
formated date of the message |
%%VirusName%% |
name of the viruses delimited with semicolon |
%%VirusDBDate%% |
last update date of the database for IceWarp Anti-Virus engine |
%%SpamScore%% |
result of antispam filters |
%%SpamReason%% |
reason why message has been marked as spam |
%%MailboxPath%% %%Mailbox%% %%Alias%% |
Account variables used only in certain places |