]> Frank Brehm's Git Trees - my-stuff/py-logrotate.git/commitdiff
Mit mail option angefangen
authorFrank Brehm <frank@brehm-online.com>
Wed, 4 May 2011 22:04:32 +0000 (22:04 +0000)
committerFrank Brehm <frank@brehm-online.com>
Wed, 4 May 2011 22:04:32 +0000 (22:04 +0000)
git-svn-id: http://svn.brehm-online.com/svn/my-stuff/python/PyLogrotate/trunk@224 ec8d2aa5-1599-4edb-8739-2b3a1bc399aa

LogRotateConfig.py

index 979a91d6958d16bc89f7bc27b25524474d6f6df5..085352c8b8729c4cfad80272f8fcd4c660db985d 100755 (executable)
@@ -1001,6 +1001,11 @@ class LogrotateConfigurationReader(object):
             directive[key] = option_value
             return True
 
+        # Check for mail address
+        match = re.search(r'^(not?)?mail$', option, re.IGNORECASE)
+        if match:
+            negated = match.group(1)
+
         return True
 
     #------------------------------------------------------------