Examples of Elm Filters
To file all messages from email@example.com (where ttrojan is a sample user) in the local mail folder from_me:
if (from = "firstname.lastname@example.org") then save /home/scf-00/ttrojan/mail/from_me
Note: The path leading up to your local mail directory can be determined by running the command pwd once you are in the mail directory. The path will be different than that specified in the example.
To delete all messages from the domain spam.com:
if (from contains "spam.com") then delete
To forward messages that do not have the subject "Work" to email@example.com and keep a copy in the Inbox:
if (subject != "Work") then forwardc firstname.lastname@example.org
To allow messages sent to innocuous_list (where innocuous stands for the name of a mailing list to which you wish to subscribe) to be delivered normally:
if (to contains "innocuous_list") then leave
To delete messages longer than 10,000 lines:
if (lines > 10000) then delete
Once filters have been specified, they can be validated by running the command filter -r at the prompt. This will cause the filter program to parse the .elm/filter-rules file and display the conditions and actions it has associated with each rule.
If the filter program interprets a rule differently than was intended, the .elm/filter-rules file should be examined to verify that the conditions and/or actions are specified properly.
More information about Elm filters, as well as additional commands for the filter program, can be viewed by running the command "man filter" at the UNIX prompt.
The Customer Support Center can assist you with setting up filters for your mail. However, consultants will not extensively troubleshoot filter rules, nor can they assist users who need finer rules than Elm filters allow or who need to get a specific program to work--either as part of a filter rule (execute or executec) or to perform the filtering itself.
Users requiring assistance can either call the ITS Customer Support Center at 213-740-5555, or send an email to email@example.com.