|
ListFiltersSetShown below is the e-mail command syntax to create List Filters. First, ensure that you are familiar with the List Filters terminology, otherwise much of this might not make much sense. Syntax Rules
-> For some, colons may make the syntax easier to compose and read. Either one works.
Processing Rules
KeywordsThe full suite of keywords that may be used to compose a single filter are: CREATE FILTER
Each keyword, and all parameter data that goes with it, must appear on a line by itself. Not all keywords are necessary for the creation of a filter. Some of the keywords are defaulted to pre-set values; scroll to the bottom of the page for the default settings. SyntaxEach keyword is shown below, and the "simple" syntax for that keyword immediately follows. If there is a more complex variation of the "simple" syntax, it appears immediately after the simple syntax. Any notes or additional information for the keyword or its parameters follows the syntax. Each keyword (and its associated data) must appear on a line by itself. CREATE FILTER: Every filter segment must begin with a "
MATCH: This defines the string that will be matched
Notes on "match" * The maximum length of any match string is 72 characters
* Quotes are optional
* The match string may contain any sequence of characters
- Tabs will be converted to spaces
- Multiple spaces will be compressed
- Match performance is unaffected (improved, actually) by these modifications
LOCATION: This tells Gazelle where in the message to look for the match string.
where.... * "header" tells Gazelle to find the match string in a specific header, as follows:
- header-name specifies the header to use (e.g., "From:", "Subject:", etc.; the ending colon is optional).
- If "any" or "*" is used, then Gazelle will search all headers for the match string.
* "body" tells Gazelle to search for the match string in the body of the message.
* "anywhere" tells Gazelle that the match string may appear anywhere -- i.e., in the body or in any header.
* "body" and "anywhere" do not require a header name.
CONTEXT: Tells Gazelle what types of messages to apply against the filter.
where.... * "posts" tells Gazelle to look for the match string in posts (i.e., messages to the list).
* "commands" tells Gazelle to look in command messages (i.e., messages to the server).
* "anywhere" tells Gazelle to check all messages -- posts and commands.
ACTION: Tells Gazelle what action to take upon a filter match.
where.... * "reject" tells Gazelle to reject the post when the match string is found
* "moderate" tells Gazelle to submit the post for moderation when the match string is found
* "redirect" tells Gazelle to return a message to the sender, suggesting that s/he re-send his post to a different list
* "replace" tells Gazelle to replace every occurrence of match string with the string specified in the action parameter
* The definition/interpretation of the action parameter is based on the action keyword selected above (i.e., reject, moderate, redirect, or replace), and is defined as follows:
- For "reject," the action parameter can be either a document (i.e., a file name) or the word "quiet," where:
- If a document name is specified, then that document will be sent to the sender when the post is rejected.
- If the word "quiet" is used, then no message will be returned; the post will essentially be "dropped" on the floor. (This is useful for suspected spam messages and for non-spam messages in which you don't want the user to know that the post has been rejected.)
- For "moderate," the action parameter is the reason for moderating the message (i.e., the reason for moderating the thread).
- For "redirect," the action parameter is the "short name" of the list to which the message should be redirected (where the "short name" of a list is the part to the left of the "@" sign in the list's posting address).
NOTE: The message will not actually be sent to the other list; instead, a document will be sent to the user, suggesting that the message might be more appropriate for the other list.
- For "replace," the action parameter is the text that will replace the match string.
NOTE: Case and spacing are preserved in the replacement string.
EXPIRATION: Establishes a date on which the filter will expire.
where.... * yyyymmdd is a four-digit year, two-digit month, two-digit day representation of the date on which you want this filter to expire.
NOTE: The filter will continue to execute ON the expiration date, and will be removed at 1:00 a.m. ET on the day AFTER the expiration date.
* "none" specifies that the filter will never expire.
NOTIFY: Tells Gazelle whether the List Managers should be informed that this filter has executed.
where.... * "yes" instructs Gazelle to send a notification message to specific List Managers, informing them that a filter has triggered.
* "no" lets the filter execute quietly.
NOTES:
1. "Specific List Managers" are those who have the "Gazelle Messages" flag set in their List Manager account profiles (this is a List Manager-settable flag).
2. It is recommended that all DROP actions (i.e., "action = reject = quiet") be sent to the List Managers for review, since the sender does not receive any notification of the drop.
END FILTER: Denotes the end of a filter.
Default SettingsExamplesCREATE FILTER Spaces are ignored everywhere -- so the following filter is equivalent to the previous filter, and might be clearer (or at least easier to read): CREATE FILTER A replacement filter could try to fix the problem rather than kill the thread: CREATE FILTER Or perhaps that text appeared in the body of a message in an otherwise useful thread. In that case: CREATE FILTER The "digest" filter is one that would not have an expiration: CREATE FILTER I'll post additional examples as are necessary to help illustrate other filter cases. |