diff --git a/CREDITS b/CREDITS index 05c694a6cb05b870d720fd2d1e90eb5f2765a58d..f47611a27847fca9164be1a3ee9863403088fdb0 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 df8dded8499d57412d59d10003f7264ba202cbc7..d3817952eab4b8a1f43b4f591315256110babab5 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 c926147ea6900938108b37e1bd039adccdad32c3..812510d47ae0ccc4765d9dccbf44e74d1c1f5cf7 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.