Differences between version 2 and previous revision of EximFilter.
Other diffs: Previous Major Revision, Previous Author, or view the Annotated Edit History
Newer page: | version 2 | Last edited on Wednesday, September 24, 2003 8:29:53 am | by JohnMcPherson | Revert |
Older page: | version 1 | Last edited on Tuesday, September 23, 2003 2:26:42 pm | by JohnMcPherson | Revert |
@@ -1,5 +1,9 @@
If your .forward file starts with "# Exim filter", then the [Exim] mail program can do some processing of your incoming email.
+
+If you have exim installed, you can probably find comprehensive documentation on this in
+ /usr/share/doc/exim/filter.txt{,.gz}
+otherwise have a look online at www.exim.org/exim-html-3.30/doc/html/filter.html or www.exim.org/exim-html-4.00/doc/html/filter.html depending on which version of exim you have installed.
Here is a simple example:
# Exim filter - do not edit this line!
@@ -9,10 +13,10 @@
# as per usual
if error_message then finish endif
# I have mail forwarded to me from an account at another machine.
- # it currently only gets spam, so automatically save to somewhere else
- # this
match is a regular expression, hence need to double escape the .
+ # it currently only gets spam, so automatically save to somewhere else.
+ # This
match is a regular expression, hence need to double escape the "
."
if $header_received: contains remotehost\\.co\\.nz
and $header_from: does not contain remotehost\\.co\\.nz
then
save $home/Mail/remotehostspam 0600