From 161b4c31e1ae2526fc92afa76f18cc9cef73df79 Mon Sep 17 00:00:00 2001 From: Stuart Gathman Date: Fri, 27 Feb 2015 01:04:27 +0000 Subject: [PATCH] Fix header_leading_space, update doc version. --- Doxyfile | 2 +- Milter/__init__.py | 4 ++-- testgrey.py | 3 ++- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/Doxyfile b/Doxyfile index ae69256..a9c0421 100644 --- a/Doxyfile +++ b/Doxyfile @@ -31,7 +31,7 @@ PROJECT_NAME = pymilter # This could be handy for archiving the generated documentation or # if some version control system is used. -PROJECT_NUMBER = 0.9.8 +PROJECT_NUMBER = 1.0 # The OUTPUT_DIRECTORY tag is used to specify the (relative or absolute) # base path where the generated documentation will be put. diff --git a/Milter/__init__.py b/Milter/__init__.py index d2f4248..62b2734 100755 --- a/Milter/__init__.py +++ b/Milter/__init__.py @@ -101,7 +101,7 @@ def rejected_recipients(klass): return enable_protocols(klass,P_RCPT_REJ) ## Milter leading space on headers. A class decorator that calls -# enable_protocols() with the P_HEAD_LEADSPC flag. By default, +# enable_protocols() with the P_HDR_LEADSPC flag. By default, # header continuation lines are collected and joined before getting # sent to a milter. Headers modified or added by the milter are # folded by the MTA as necessary according to its own standards. @@ -119,7 +119,7 @@ def rejected_recipients(klass): # @param klass the %milter application class to modify # @return the modified %milter class def header_leading_space(klass): - return enable_protocols(klass,P_HEAD_LEADSPC) + return enable_protocols(klass,P_HDR_LEADSPC) ## Function decorator to disable callback methods. # If the MTA supports it, tells the MTA not to invoke this callback, diff --git a/testgrey.py b/testgrey.py index 5309448..96d402e 100644 --- a/testgrey.py +++ b/testgrey.py @@ -8,7 +8,8 @@ class GreylistTestCase(unittest.TestCase): def setUp(self): self.fname = 'test.db' - os.remove(self.fname) + if os.path.isfile(self.fname): + os.remove(self.fname) def tearDown(self): #os.remove(self.fname)