From 953e8a61faffe0a40b211b655d84a06075f0cf00 Mon Sep 17 00:00:00 2001 From: Stuart Gathman <stuart@gathman.org> Date: Thu, 3 Mar 2011 05:11:58 +0000 Subject: [PATCH] Release 0.9.4 --- CREDITS | 3 +++ Milter/dsn.py | 5 ++++- pymilter.spec | 15 ++++----------- 3 files changed, 11 insertions(+), 12 deletions(-) diff --git a/CREDITS b/CREDITS index 05c694a..f47611a 100644 --- a/CREDITS +++ b/CREDITS @@ -7,6 +7,9 @@ real, usable Python extension. Other contributors (in random order): + +Daniel Troeder + for pointing out a typo in @noreply arkanes@irc.freenode.net for suggesting a class method to compute and cache protocol masks habnabit@habnabit.org diff --git a/Milter/dsn.py b/Milter/dsn.py index df8dded..d381795 100644 --- a/Milter/dsn.py +++ b/Milter/dsn.py @@ -5,6 +5,9 @@ # Send DSNs, do call back verification, # and generate DSN messages from a template # $Log$ +# Revision 1.20 2010/10/11 00:29:47 customdesigned +# Handle multiple recipients. For CBV or auto whitelist of multiple emails. +# # Revision 1.19 2009/07/02 19:41:12 customdesigned # Handle @ in localpart. # @@ -123,7 +126,7 @@ def send_dsn(mailfrom,receiver,msg=None,timeout=600,session=None,ourfrom=''): mailfrom = [mailfrom] badrcpts = {} for rcpt in mailfrom: - code,resp = smtp.rcpt(mailfrom) + code,resp = smtp.rcpt(rcpt) if code not in (250,251): badrcpts[rcpt] = (code,resp)# permanent error smtp.quit() diff --git a/pymilter.spec b/pymilter.spec index c926147..812510d 100644 --- a/pymilter.spec +++ b/pymilter.spec @@ -1,9 +1,4 @@ -# EL 3,4,5 supported, set to 0 for Fedora -%define el4 1 -%define dist .el4 -%if 0%{?el3} || 0%{?el4} -%define __python python2.4 -%endif +%define __python python2.6 %define libdir %{_libdir}/pymilter %{!?python_sitearch: %define python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")} @@ -11,7 +6,7 @@ Summary: Python interface to sendmail milter API Name: pymilter -Version: 0.9.3 +Version: 0.9.4 Release: 1%{dist} Source: http://downloads.sourceforge.net/pymilter/%{name}-%{version}.tar.gz License: GPLv2+ @@ -19,13 +14,9 @@ Group: Development/Libraries BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root Url: http://www.bmsi.com/python/milter.html Requires: %{pythonbase} >= 2.4, sendmail >= 8.13 -%if 0%{?el3} || 0%{?el4} # Need python2.4 specific pydns, not the version for system python Requires: pydns -%else # Needed for callbacks, not a core function but highly useful for milters -Requires: python-pydns -%endif BuildRequires: ed, %{pythonbase}-devel >= 2.4, sendmail-devel >= 8.13 %description @@ -83,6 +74,8 @@ chmod a+x $RPM_BUILD_ROOT%{libdir}/start.sh rm -rf $RPM_BUILD_ROOT %changelog +* Wed Mar 02 2010 Stuart Gathman <stuart@bmsi.com> 0.9.4-1 + * Thu Jul 02 2009 Stuart Gathman <stuart@bmsi.com> 0.9.3-1 - Handle source route in Milter.util.parse_addr() - Fix default arg in chgfrom. -- GitLab