bugfixing in parsers
[logparse.git] / logparse / parsers / postfix.py
index bee1809edb1642df5df26cdf2733c6c41bf905d5..ea4bac96b69bb6837a2c743832fd1011fb48d227 100644 (file)
@@ -38,12 +38,13 @@ def parse_log():
             rec_data.items = r
             rec_data.orderbyfreq()
             rec_data.truncl(config.prefs['maxlist'])
+            rec_data.subtitle = n + " messages sent to"
         else:
             rec_data.subtitle = n + " messages sent to " + r[0]
         section.append_data(rec_data)
     else:
-        section.append_data(Data(subtitle=n + " messages sent")))
+        section.append_data(Data(subtitle=n + " messages sent"))
     logger.info("Found {0} messages sent to {1} recipients".format(n, str(len(r))))
-    section.append_data(Data(subtitle="total of " + size))
+    section.append_data(Data(subtitle="Total of " + size))
     logger.info("Finished postfix section")
     return section