Download MailGate User Manual
Transcript
9 Technical Reference Using W ildcards Using W ildcard Expressions Some entries in MailGate allow the use of wildcard patterns rather than creating long lists. When creating these entries, you can use special characters to control the matching process. The following can be used within MailGate to create wildcard patterns :? Matches any single character. T?m matches Tim, Tom and tam. * Matches zero or more characters. Hol*d matches holed and hold. [] M AI LGATE M AN UAL Matches any single character that appears within the square brackets. For example, [0123456789] will match any single digit from 0 to 9. You can also specify a range using a dash - for example, [0-9]. ^ Indicates the start of a new line. For example, *^Received:* will only return a match if the Received: is found at the start of a new line. Used in extension modules which check email contents. _ Indicates the match must occur on a single line. For example, _*filename*.exe* will only return a match if the strings filename and .exe occur on a single line. [^ ] Matches any single character that does not appear within the square brackets. For example, [^abc] will match any single character except "a", "b" and "c". \ Matches the following character literally. For example, \* will match a single asterisk and \\ will match a single backslash. ! Negate - The matching will return true if the negated pattern is NOT matched. Use this option with care in pattern lists. For example, on the Setup | Domains Tab !username@mydomain.com will cause MailGate to treat this address as an external address as it is NOT a local domain. Technical Reference 9-1