Penguin

Differences between version 13 and predecessor to the previous major change of EximFilter.

Other diffs: Previous Revision, Previous Author, or view the Annotated Edit History

Newer page: version 13 Last edited on Thursday, November 6, 2008 9:44:53 pm by JohnMcPherson Revert
Older page: version 11 Last edited on Friday, April 8, 2005 12:38:36 pm by JohnMcPherson Revert
@@ -24,10 +24,10 @@
 <verbatim> 
 # Exim filter - do not edit this line! 
 # only works for exim... others will treat it as a plain .forward file... 
  
-# if this filter generates an error, then deliver to original address  
-# as per usual 
+# if this message is an error (bounce/"delivery failed") , then deliver to original  
+# address 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. 
@@ -54,10 +54,9 @@
  
 <verbatim> 
 # Exim filter - do not edit this line! 
  
-# if this filter generates an error, then exim will act as if there was  
-# no filter file (as per usual)  
+# don't do any filtering for bounces/failure notifications  
 if error_message then finish endif 
  
 # the 'testprint' command will print out its argument if you are running 
 # exim in test mode, and will do nothing if run 'live' 
@@ -121,5 +120,22 @@
 if not delivered then 
  deliver ${local_part} 
 endif 
  
+</verbatim>  
+  
+  
+!! Yet Another Exim Filter recipe:  
+  
+Rather than specific known suffices, deliver into a Maildir folder that's named the same as the suffix. No suffix? Go into INBOX:  
+  
+<verbatim>  
+# Exim filter  
+  
+if $local_part_suffix is ""  
+then  
+ save $home/Maildir/  
+else  
+ # Remove the first '-', and any periods in the suffix.  
+ save $home/Maildir/.${sg{${sg{$local_part_suffix}{[\.]}{}}}{^-}{}}/  
+endif  
 </verbatim>