[augeas-devel] postfix_access lens patch

David Lutterkort lutter at redhat.com
Mon Nov 16 19:03:47 UTC 2009


On Fri, 2009-11-13 at 16:20 -0500, Partha Aji wrote:
> Patch contains the lens + test case to handle /etc/postfix/access .
> 
> For example the following entry in /etc/postfix/access
> 
> 1.2.3 DISCARD Don't bother me
> 
> will get translated to
> 
> augtool> match /files/etc/postfix/access/1/*
> /files/etc/postfix/access/1/pattern = 1.2.3
> /files/etc/postfix/access/1/action = DISCARD
> /files/etc/postfix/access/1/parameters = Don't bother me

ACK. Committed, with some minor changes to formatting and replacing

@@ -10,7 +10,7 @@ module Postfix_Access =
   let indent = del /[ \t]*/ ""
 
   let comment = Util.comment
-  let empty   = [ del /[ \t]*#?[ \t]*\n/ "\n" ]
+  let empty   = Util.empty
 
   let char = /[^# \n\t]/
   let text =

David





More information about the augeas-devel mailing list