Fixed typo in class name (s/NiXSapmSum/NiXSpamSum/g)
authorPascal Volk <user@localhost.localdomain.org>
Tue, 08 Feb 2011 14:23:34 +0000
changeset 14 1fc9b5ed89be
parent 13 b0c05ce0f44c
child 15 1a4d73017e79
Fixed typo in class name (s/NiXSapmSum/NiXSpamSum/g) Added current year to the copyright notices.
COPYING
nixspamsum
--- a/COPYING	Sun Feb 06 12:47:36 2011 +0000
+++ b/COPYING	Tue Feb 08 14:23:34 2011 +0000
@@ -1,4 +1,4 @@
-Copyright (c) 2009 - 2010, Pascal Volk
+Copyright (c) 2009 - 2011, Pascal Volk
 All rights reserved.
 
 Redistribution and use in source and binary forms, with or without modification,
--- a/nixspamsum	Sun Feb 06 12:47:36 2011 +0000
+++ b/nixspamsum	Tue Feb 08 14:23:34 2011 +0000
@@ -1,6 +1,6 @@
 #!/usr/bin/env python
 # -*- coding: utf-8 -*-
-# Copyright 2009 - 2010 Pascal Volk
+# Copyright 2009 - 2011 Pascal Volk
 # See COPYING for distribution information.
 
 __author__ = 'Pascal Volk'
@@ -12,7 +12,7 @@
 import fileinput
 
 
-class NiXSapmSum(object):
+class NiXSpamSum(object):
     """
     Small log parser class to parse and summarize NiX Spam DNSBL lookup
     based rejects from a mail log file.
@@ -34,7 +34,7 @@
 
     def setLogFormat(self, format='postfix'):
         if format == 'postfix':
-            self._repo = re.compile(NiXSapmSum.RE_PF, re.VERBOSE)
+            self._repo = re.compile(NiXSpamSum.RE_PF, re.VERBOSE)
         else:
             raise Exception('MTA/Logformat not supported yet.')
 
@@ -49,7 +49,7 @@
                     self._mxs[mx] = 1
 
     def countByDom(self):
-        ipv4po = re.compile(NiXSapmSum.RE_IPv4)
+        ipv4po = re.compile(NiXSpamSum.RE_IPv4)
         for mx in self._mxs.keys():
             mo = ipv4po.match(mx)
             if mo:
@@ -183,7 +183,7 @@
         os.sys.stderr.write('No readable log files found\n')
         return 1
 
-    nixss = NiXSapmSum()
+    nixss = NiXSpamSum()
     nixss.setLogFormat(opts.format)
 
     fi = fileinput.FileInput(log_files, openhook=fileinput.hook_compressed)