# HG changeset patch # User Pascal Volk # Date 1297175014 0 # Node ID 1fc9b5ed89bea79a69e73db4319c4804a12ae64f # Parent b0c05ce0f44c7cf47bc6abcb29e41132de4ec215 Fixed typo in class name (s/NiXSapmSum/NiXSpamSum/g) Added current year to the copyright notices. diff -r b0c05ce0f44c -r 1fc9b5ed89be COPYING --- 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, diff -r b0c05ce0f44c -r 1fc9b5ed89be nixspamsum --- 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)