MailEnable Enterprise Guide
Message Filtering / Scripted Filtering / Basic Script Example
In This Topic
    Basic Script Example
    In This Topic

    An example script for an advanced filter is outlined below:

    Script Example
    Copy Code
    If Hour(Now) > 10 Then
         If [ME_SIZE] > 1024 OR CriteriaMet([ME_BODY],"*123*") AND _
              CriteriaMet([ME_SUBJECT],"*123*") Then
         End If
    End If

    This example script will have its criteria met under the following circumstances. If it is after the 10th hour of the day and the size of the message is greater than 1KB Or the Body of the message contains the string 123.