-#
-# postfix.py
-#
-# Get message statistics from postfix/sendmail logs
-#
+"""
+Get message statistics from postfix/sendmail logs
+"""
import re
section = Section("postfix")
logger.debug("Starting postfix section")
logger.debug("Searching through postfix logs")
- messages = re.findall('.*from\=<(.*)>, size\=(\d*),.*\n.*to=<(.*)>', readlog(config.prefs.get("logs", "postfix")))
+ messages = re.findall('.*from\=<(.*)>, size\=(\d*),.*\n.*to=<(.*)>',
+ readlog(config.prefs.get("logs", "postfix")))
r = []
s = []
size = 0