Mail Filters in Navigator 4.0 This appendix tells you how you can use JavaScript to filter your incoming mail and news when you use Netscape Messenger. This function takes one argument, a message object, and can make changes to that message. Add an entry for the JavaScript function to your mail rules file. Your rules file can have multiple filters.
Messenger applies each filter in turn to a message until one of the filters acts on it.
The first step is to write a filters.js file. This file contains the JavaScript functions that perform the mail filtering. These functions can use all features of client-side JavaScript. The following is an example of a simple mail filter file. So, if you refile things using IMAP, they all end up on your local machine.