MailEnable Enterprise Guide
Enumerations requiring the CriteriaMet syntax

 

Token

Value

[ME_TO]

The message envelope recipients or the To: denoted in the message headers matches the designated criteria.

[ME_CC]

The Cc: denoted in the message headers matches the designated criteria.

[ME_ToorCC]

The message envelope recipients or the To: or Cc: denoted in the message headers matches the designated criteria.

[ME_FROM]

The message envelope sender or the From: denoted in the message headers matches the designated criteria.

[ME_HEADERS_CONTAIN]

The message headers contain data matching the designated criteria.

[ME_SUBJECT]

The message subject contains data matching the designated criteria.

[ME_PRIORITY]

The priority of the message meets the designated criteria.

[ME_SPF]

The SPF response string associated with the message meets the designated criteria.

[ME_HASATTACHMENTSMATCHING]

The message contains an attachment with a file name that meets the designated criteria.

[ME_BODY]

The body of the message contains text meeting the designated criteria.

 

Literal Enumeration Example
Copy Code
If (CriteriaMet([ME_SUBJECT], "Viagra")) Then
'Do Stuff
End If
In cases where literal values return 1 or 0, it is possible to also use literal values with the CriteriaMet function, although there is no real reason to do so:
Example: CriteriaMet([ME_SENDERAUTH], 0) is the same as ([ME_SENDERAUTH] = 0)
But this is not the case for string values:
CriteriaMet([ME_SUBJECT], "Viagra") is not the same as ([ME_SUBJECT] = "Viagra") because string tokens cannot be used in this manner.

 

 


© MailEnable Pty. Ltd. All Rights Reserved.