New example

This commit is contained in:
Stuart Gathman
2011-11-05 15:51:03 +00:00
parent feb6526cb8
commit 83a1762515
4 changed files with 18 additions and 20 deletions
+1 -2
View File
@@ -79,7 +79,7 @@ class myMilter(Milter.Base):
## def envrcpt(self, to, *str):
@Milter.noreply
def envrcpt(self, recipient, *str):
def envrcpt(self, to, *str):
rcptinfo = to,Milter.dictfromlist(str)
self.R.append(rcptinfo)
@@ -110,7 +110,6 @@ class myMilter(Milter.Base):
self.addrcpt('<%s>' % 'spy@example.com')
return Milter.ACCEPT
def close(self):
# always called, even when abort is called. Clean up
# any external resources here.