Mail Filters with Custom Functions

Mail Filters with Custom Functions

Hi,

I'm trying to set up some custom function based email filters, but the documentation seems a little incomplete and the error messages given by the editor are often not very useful.

Some things I've noticed:
the auto complete popup is often cut off.
arguments to some functions that show up in the popup aren't documented.
Unsure what email headers are exposed in the message details.
There's no good way to test or debug a filter.
sender and from appear to be reserved words, so you can't use them as variable names, but I haven't seen any documentation stating that. The error message given is "Incorrect statement error" with a line number that is usually wrong.