Penguin

Differences between current version and previous revision of EximFilter.

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

Newer page: version 14 Last edited on Tuesday, February 3, 2009 4:46:26 pm by MikeBordignon
Older page: version 13 Last edited on Thursday, November 6, 2008 9:44:53 pm by JohnMcPherson Revert
@@ -137,5 +137,13 @@
 else 
  # Remove the first '-', and any periods in the suffix. 
  save $home/Maildir/.${sg{${sg{$local_part_suffix}{[\.]}{}}}{^-}{}}/ 
 endif 
+</verbatim>  
+  
+!! Escaping reserved characters in filters and system_filter  
+  
+The manual writes something along the lines of that you need to double-escape certain characters for regular expressions since they get un-escaped once by Exim, and then once again by the regex. So for strings inside quotes, you need to escape 4 times, ie escaping "~[" and "~]":  
+  
+<verbatim>  
+headers add "New-Subject1: ${sg{$h_old-subject:}{\\\\[StringToRemove\\\\]}{}}"  
 </verbatim>