Skip to content

Commit

Permalink
Release 1.0.3
Browse files Browse the repository at this point in the history
  • Loading branch information
sdgathman committed Nov 14, 2017
1 parent ba626ea commit 04181a8
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ web:
doxygen
rsync -ravK doc/html/ spidey2.bmsi.com:/Public/pymilter

VERSION=1.0.2
VERSION=1.0.3
PKG=pysrs-$(VERSION)
SRCTAR=$(PKG).tar.gz

Expand Down
3 changes: 2 additions & 1 deletion pysrs.spec
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,7 @@ fi
/etc/logrotate.d/pysrs
/usr/share/sendmail-cf/hack/*
%{_libexecdir}/milter/pysrs
%{_libexecdir}/milter/srsmilter
%if %{use_systemd}
%{_unitdir}/*
%else
Expand All @@ -145,7 +146,7 @@ fi
* Mon Nov 13 2017 Stuart Gathman <stuart@gathman.org> 1.0.3-1
- Include srsmilter

* Tue Nov 3 2017 Stuart Gathman <stuart@gathman.org> 1.0.2-1
* Fri Nov 3 2017 Stuart Gathman <stuart@gathman.org> 1.0.2-1
- Fix daemon to run in python2
- Move daemons to /usr/libexec/milter so they get bin_t selinux label

Expand Down
4 changes: 2 additions & 2 deletions srsmilter.py
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ def envrcpt(self,to,*params):
self.nosrsrcpt.append(to)
return Milter.CONTINUE

def eoh(self):
def data(self):
if not self.data_allowed:
return Milter.REJECT
return Milter.CONTINUE
Expand All @@ -243,7 +243,7 @@ def eom(self):

if __name__ == "__main__":
global config
config = Config(['srsmilter.cfg','/etc/mail/srsmilter.cfg'])
config = Config(['pysrs.cfg','/etc/mail/pysrs.cfg'])
Milter.factory = srsMilter
if config.miltersrs:
flags = Milter.CHGFROM + Milter.DELRCPT
Expand Down

0 comments on commit 04181a8

Please sign in to comment.