pymilter  1.0.5
Deprecated List
Member Milter.dictfromlist (args)
You probably want Milter.param2dict instead.
Class Milter.test.TestBase
Use Milter.test.TestCtx
Milter.testctx.TestCtx._feedMsg
def _feedMsg(self, fname, sender="spam@adv.com", *rcpts)
Feed an email contained in a file to the milter.
Definition: testctx.py:310
Milter.Base.abort
def abort(self)
Called when the connection is abnormally terminated.
Definition: __init__.py:450
Milter.testctx.TestCtx._priv
_priv
Usually the Milter application derived from Milter.Base.
Definition: testctx.py:27
Milter.greylist.Greylist.greylist_time
greylist_time
Definition: greylist.py:39
Milter.sgmllib.SGMLParser.setliteral
def setliteral(self, *args)
Definition: sgmllib.py:87
Milter.sgmllib.SGMLParser.rawdata
rawdata
Definition: sgmllib.py:73
Milter.Base._setctx
def _setctx(self, ctx)
Attach this Milter to the low level milter.milterContext object.
Definition: __init__.py:269
mime.SGMLFilter.handle_special
def handle_special(self, data)
Definition: mime.py:379
milter.settimeout
def settimeout(secs)
Set timeout for MTA communication.
Definition: milter.py:203
Milter.Base.log
def log(self, *msg)
Defined by subclasses to write log messages.
Definition: __init__.py:312
Milter.sgmllib.SGMLParser.lasttag
lasttag
Definition: sgmllib.py:75
Milter.testctx.TestCtx._delrcpt
_delrcpt
List of recipients deleted.
Definition: testctx.py:29
mime.MimeMessage
Enhance email.message.Message.
Definition: mime.py:92
Milter.sgmllib.SGMLParser.parse_starttag
def parse_starttag(self, i)
Definition: sgmllib.py:237
mime.MimeMessage.get_payload
def get_payload(self, i=None, decode=False)
Definition: mime.py:196
Milter.testctx.TestCtx._eom
def _eom(self)
Definition: testctx.py:257
Milter.sgmllib.SGMLParser.handle_endtag
def handle_endtag(self, tag, method)
Definition: sgmllib.py:383
Milter.testctx.TestCtx._reply
_reply
Reply codes and messages set by the milter.
Definition: testctx.py:35
Milter.test.TestBase._body
_body
The message body.
Definition: test.py:33
milter.milterContext.getsymval
def getsymval(self, sym)
Calls smfi_getsymval.
Definition: milter.py:79
Milter.Milter.envrcpt
def envrcpt(self, to, *str)
Called when the SMTP client says RCPT TO.
Definition: __init__.py:722
Milter.Milter.close
def close(self)
Called when the connection is closed.
Definition: __init__.py:749
mime.unquote
def unquote(s)
Definition: mime.py:63
Milter.testctx.TestCtx._headerschanged
_headerschanged
True if the milter changed any headers.
Definition: testctx.py:43
Milter.testctx.TestCtx._envrcpt
def _envrcpt(self, s)
Definition: testctx.py:205
Milter.greysql.Greylist.greylist_time
greylist_time
Definition: greysql.py:19
Milter.Base.setsymlist
def setsymlist(self, stage, *macros)
Tell the MTA which macro names will be used.
Definition: __init__.py:558
Milter.uniqueID
def uniqueID()
Definition: __init__.py:30
milter.milterContext.addrcpt
def addrcpt(self, rcpt, params=None)
Calls smfi_addrcpt.
Definition: milter.py:94
Milter.test.TestBase.feedFile
def feedFile(self, fp, sender="spam@adv.com", rcpt="victim@lamb.com", *rcpts)
Feed a file like object to the milter.
Definition: test.py:161
mime._defang.__call__
def __call__(self, msg, savname=None, check=check_ext, scan_rfc822=True, scan_zip=False)
Definition: mime.py:322
Milter.Base.data
def data(self)
Called when the SMTP client says DATA.
Definition: __init__.py:405
Milter.Milter.connect
def connect(self, hostname, family, hostaddr)
Called for each connection to the MTA.
Definition: __init__.py:701
Milter.greylist.Record.firstseen
firstseen
Definition: greylist.py:24
Milter.Milter.abort
def abort(self)
Called when the connection is abnormally terminated.
Definition: __init__.py:744
Milter.utils.parse_header
def parse_header(val)
Decode headers gratuitously encoded to hide the content.
Definition: utils.py:204
Milter.sgmllib.SGMLParser.handle_data
def handle_data(self, data)
Definition: sgmllib.py:438
milter.set_abort_callback
def set_abort_callback(cb)
Definition: milter.py:137
Milter.test.TestBase
Test mixin for unit testing milter applications.
Definition: test.py:19
Milter.sgmllib.SGMLParser.convert_entityref
def convert_entityref(self, name)
Definition: sgmllib.py:417
mime.MimeMessage.submsg
submsg
Definition: mime.py:97
milter.set_close_callback
def set_close_callback(cb)
Definition: milter.py:138
Milter.envcallback
def envcallback(c, args)
Definition: __init__.py:816
Milter.plock.PLock.basename
basename
Definition: plock.py:11
Milter.Milter.header
def header(self, field, value)
Called for each header field in the message body.
Definition: __init__.py:728
Milter.test.TestBase.feedMsg
def feedMsg(self, fname, sender="spam@adv.com", *rcpts)
Feed an email contained in a file to the milter.
Definition: test.py:220
Milter.sgmllib.SGMLParser.finish_starttag
def finish_starttag(self, tag, attrs)
Definition: sgmllib.py:330
Milter.plock.PLock
Definition: plock.py:8
Milter.factory
factory
The milter connection factory This factory method is called for each connection to create the python ...
Definition: __init__.py:762
Milter.greylist.Record.lastseen
lastseen
Definition: greylist.py:25
Milter.noreply
def noreply(func)
Function decorator to disable callback reply.
Definition: __init__.py:166
Milter.policy.MTAPolicy.sender
sender
Definition: policy.py:29
Milter.symlist
def symlist(*syms)
Function decorator to set macros used in a callback.
Definition: __init__.py:215
Milter.Base.header
def header(self, field, value)
Called for each header field in the message body.
Definition: __init__.py:431
Milter.testctx.TestCtx.progress
def progress(self)
Reset activity timer.
Definition: testctx.py:141
milter.stop
def stop()
Stop the milter gracefully.
Definition: milter.py:230
Milter.Base.delrcpt
def delrcpt(self, rcpt)
Delete a recipient from the message.
Definition: __init__.py:632
mime.zipnames
def zipnames(txt)
Return a list of filenames in a zip file.
Definition: mime.py:39
milter.set_connect_callback
def set_connect_callback(cb)
Definition: milter.py:130
Milter.greylist.Greylist.lock
lock
Definition: greylist.py:43
mime.HTMLScriptFilter.ignoring
ignoring
Definition: mime.py:422
milter.milterContext.getpriv
def getpriv(self)
Return the Python object attached to this connection context.
Definition: milter.py:103
Milter.enable_protocols
def enable_protocols(klass, mask)
Class decorator to enable optional protocol steps.
Definition: __init__.py:94
mime._defang.scan_rfc822
scan_rfc822
Definition: mime.py:327
Milter.negotiate_callback
def negotiate_callback(ctx, opts)
Connect context to connection instance and return enabled callbacks.
Definition: __init__.py:766
Milter.plock.PLock.lock
def lock(self, lockname=None, mode=0o660, strict_perms=False)
Definition: plock.py:14
Milter.sgmllib.SGMLParser.literal
literal
Definition: sgmllib.py:77
milter.setdbg
def setdbg(lev)
Set the libmilter debugging level.
Definition: milter.py:198
mime.MimeMessage.modified
modified
Definition: mime.py:98
Milter.cache.AddrCache.age
age
Definition: cache.py:57
Milter.test.TestBase.setreply
def setreply(self, rcode, xcode, *msg)
Save the reply codes and messages in self._reply.
Definition: test.py:125
Milter.sgmllib.TestSGMLParser.testdata
testdata
Definition: sgmllib.py:463
Milter.Base.protocol_mask
def protocol_mask(klass)
Return mask of SMFIP_N* protocol option bits to clear for this class The @nocallback and @noreply dec...
Definition: __init__.py:465
Milter.sgmllib
Definition: sgmllib.py:1
Milter.sgmllib.TestSGMLParser.close
def close(self)
Definition: sgmllib.py:510
milter.set_eoh_callback
def set_eoh_callback(cb)
Definition: milter.py:135
Milter.utils.addr2bin
def addr2bin(s)
Definition: utils.py:33
Milter.testctx.TestCtx._abort
def _abort(self)
Definition: testctx.py:144
Milter.Base.chgfrom
def chgfrom(self, sender, params=None)
Change the SMTP envelope sender address.
Definition: __init__.py:663
Milter.runmilter
def runmilter(name, socketname, timeout=0, rmsock=True)
Run the milter.
Definition: __init__.py:835
mime._defang
Definition: mime.py:307
Milter.config.MilterConfigParser.get
def get(self, sect, opt, fallback=None, **kwds)
Definition: config.py:17
milter.milterContext.chgfrom
def chgfrom(self, sender, param=None)
Calls smfi_chgfrom.
Definition: milter.py:109
Milter.testctx.TestCtx._close
def _close(self)
Definition: testctx.py:149
milter.set_body_callback
def set_body_callback(cb)
Definition: milter.py:136
mime._defang.scan_zip
scan_zip
Definition: mime.py:328
Milter.sgmllib.SGMLParser.stack
stack
Definition: sgmllib.py:74
Milter.Base.connect
def connect(self, hostname, family, hostaddr)
Called for each connection to the MTA.
Definition: __init__.py:344
Milter.testctx.TestCtx
Milter context for unit testing milter applications.
Definition: testctx.py:23
mime.MimeMessage.dump
def dump(self, file, unixfrom=False)
Definition: mime.py:159
Milter.sgmllib.SGMLParser.goahead
def goahead(self, end)
Definition: sgmllib.py:115
Milter.dns.DNSLookup
def DNSLookup(name, qtype)
Lookup DNS records by label and RR type.
Definition: dns.py:16
Milter.dsn.create_msg
def create_msg(v, rcptlist=None, origmsg=None, template=None)
Definition: dsn.py:171
milter.getversion
def getversion()
Retrieve the runtime libmilter version.
Definition: milter.py:244
Milter.testctx.TestCtx._envfrom
def _envfrom(self, *s)
Definition: testctx.py:196
Milter.sgmllib.SGMLParser.reset
def reset(self)
Definition: sgmllib.py:70
Milter.Base
A do "nothing" Milter base class representing an SMTP connection.
Definition: __init__.py:265
Milter.plock.PLock.fp
fp
Definition: plock.py:12
Milter.test.TestBase.logfp
logfp
Definition: test.py:23
Milter.test.TestBase.log
def log(self, *msg)
Definition: test.py:54
Milter.cache.AddrCache
Definition: cache.py:53
Milter.rejected_recipients
def rejected_recipients(klass)
Milter rejected recipients.
Definition: __init__.py:112
Milter.test.TestBase._close
def _close(self)
Definition: test.py:49
Milter.dictfromlist
def dictfromlist(args)
Convert ESMTP parameters with values to a keyword dictionary.
Definition: __init__.py:795
milter.getdiag
def getdiag()
Retrieve diagnostic info.
Definition: milter.py:237
Milter.Base.negotiate
def negotiate(self, opts)
Negotiate milter protocol options.
Definition: __init__.py:493
Milter.close_callback
def close_callback(ctx)
Disconnect milterContext and call close method.
Definition: __init__.py:784
Milter.test.TestBase._delrcpt
_delrcpt
List of recipients deleted.
Definition: test.py:27
Milter.sgmllib.SGMLParser.handle_pi
def handle_pi(self, data)
Definition: sgmllib.py:450
milter.milterContext.chgheader
def chgheader(self, name, idx, value)
Calls smfi_chgheader.
Definition: milter.py:92
milter.set_header_callback
def set_header_callback(cb)
Definition: milter.py:134
milter.milterContext.setreply
def setreply(self, rcode, xcode, *msg)
Calls smfi_setreply or smfi_setmlreply.
Definition: milter.py:88
Milter.sgmllib.TestSGMLParser.flush
def flush(self)
Definition: sgmllib.py:471
Milter.utils.bin2long6
def bin2long6(s)
Definition: utils.py:45
Milter.testctx.TestCtx._addrcpt
_addrcpt
List of recipients added.
Definition: testctx.py:31
Milter.Base.replacebody
def replacebody(self, body)
Replace the message body.
Definition: __init__.py:646
Milter.Base.setreply
def setreply(self, rcode, xcode=None, msg=None, *ml)
Set the SMTP reply code and message.
Definition: __init__.py:538
Milter.test.TestBase._headerschanged
_headerschanged
True if the milter changed any headers.
Definition: test.py:37
Milter.dsn.Vars
Definition: dsn.py:167
Milter.sgmllib.SGMLParser.unknown_charref
def unknown_charref(self, ref)
Definition: sgmllib.py:456
Milter.Base._protocol
_protocol
A bitmask of protocol options this connection has negotiated.
Definition: __init__.py:307
Milter.greylist.Record
Definition: greylist.py:19
Milter.testctx.TestCtx._activity
_activity
Last activity.
Definition: testctx.py:55
Milter.sgmllib.SGMLParser.convert_codepoint
def convert_codepoint(self, codepoint)
Definition: sgmllib.py:402
Milter.sgmllib.SGMLParser.parse_endtag
def parse_endtag(self, i)
Definition: sgmllib.py:310
Milter.utils.decode
def decode(s, convert_eols=None)
Fix email.base64mime.decode to add any missing padding.
Definition: utils.py:161
Milter.decode
def decode(strategy)
Function decorator to set decoding error strategy.
Definition: __init__.py:204
Milter.sgmllib.SGMLParser.handle_entityref
def handle_entityref(self, name)
Definition: sgmllib.py:429
Milter.testctx.TestCtx._symlist
_symlist
The macros returned by protocol stage.
Definition: testctx.py:37
Milter.test.TestBase._reply
_reply
Reply codes and messages set by the milter.
Definition: test.py:41
milter.setconn
def setconn(s)
Set the socket used to communicate with the MTA.
Definition: milter.py:227
mime.check_attachments
def check_attachments(msg, check, lev=None)
Definition: mime.py:286
Milter.policy.DB
Definition: policy.py:3
Milter.testctx.TestCtx._helo
def _helo(self, helo)
Definition: testctx.py:186
Milter.testctx.TestCtx._feedFile
def _feedFile(self, fp, sender="spam@adv.com", rcpt="victim@lamb.com", *rcpts)
Feed a file like object to the ctx.
Definition: testctx.py:269
Milter.dsn.send_dsn
def send_dsn(mailfrom, receiver, msg=None, timeout=600, session=None, ourfrom='')
Send DSN.
Definition: dsn.py:96
Milter.testctx.TestCtx._sender
_sender
The MAIL FROM for the current email being fed to the milter.
Definition: testctx.py:47
Milter.sgmllib.SGMLParser.unknown_endtag
def unknown_endtag(self, tag)
Definition: sgmllib.py:455
Milter.Base.quarantine
def quarantine(self, reason)
Quarantine the message.
Definition: __init__.py:677
Milter.dns.Session.cache
cache
Definition: dns.py:36
Milter.sgmllib.TestSGMLParser.__init__
def __init__(self, verbose=0)
Definition: sgmllib.py:462
Milter.test.TestBase._envfromchanged
_envfromchanged
True if the milter changed the envelope from.
Definition: test.py:39
Milter.Milter
A logging but otherwise do nothing Milter base class.
Definition: __init__.py:691
milter.set_envrcpt_callback
def set_envrcpt_callback(cb)
Definition: milter.py:133
Milter.testctx.TestCtx._eoh
def _eoh(self)
Definition: testctx.py:239
Milter.cache.AddrCache.cache
cache
Definition: cache.py:58
Milter.test.TestBase._addrcpt
_addrcpt
List of recipients added.
Definition: test.py:29
Milter.test.TestBase._protocol
_protocol
Definition: test.py:22
mime.MimeMessage.getencoding
def getencoding(self)
Definition: mime.py:170
Milter.testctx.TestCtx._data
def _data(self)
Definition: testctx.py:213
Milter.cache.AddrCache.__getitem__
def __getitem__(self, sender)
Definition: cache.py:127
Milter.dns
Provide a higher level interface to pydns.
Definition: dns.py:1
Milter.testctx.TestCtx._stage
_stage
Definition: testctx.py:157
Milter.test.TestBase._sender
_sender
The MAIL FROM for the current email being fed to the milter.
Definition: test.py:25
Milter.policy.MTAPolicy
Definition: policy.py:23
mime._defang.scan_html
scan_html
Definition: mime.py:310
milter.milterContext.quarantine
def quarantine(self, reason)
Calls smfi_quarantine.
Definition: milter.py:105
Milter.greysql.Greylist
Definition: greysql.py:15
Milter.sgmllib.SGMLParser._convert_ref
def _convert_ref(self, match)
Definition: sgmllib.py:299
Milter.cache.AddrCache.has_key
def has_key(self, sender)
Definition: cache.py:115
milter.set_envfrom_callback
def set_envfrom_callback(cb)
Definition: milter.py:132
milter.milterContext.delrcpt
def delrcpt(self, rcpt)
Calls smfi_delrcpt.
Definition: milter.py:96
Milter.policy.MTAPolicy.use_nulls
use_nulls
Definition: policy.py:28
Milter.config.MilterConfigParser.defaults
defaults
Definition: config.py:11
Milter.Base._ctx
_ctx
The low level milter.milterContext object.
Definition: __init__.py:271
Milter.utils.parse_addr
def parse_addr(t)
Definition: utils.py:171
Milter.policy.DB.f
f
Definition: policy.py:7
Milter.pyip6.inet_ntop
def inet_ntop(s)
Definition: pyip6.py:16
Milter.sgmllib.SGMLParser.entitydefs
entitydefs
Definition: sgmllib.py:414
Milter.testctx.TestCtx._body
_body
The message body.
Definition: testctx.py:39
Milter.Milter.hello
def hello(self, hostname)
Called when the SMTP client says HELO.
Definition: __init__.py:707
milter.milterContext.setsymlist
def setsymlist(self, stage, macrolist)
Tell the MTA which macro values we are interested in for a given stage.
Definition: milter.py:118
Milter.sgmllib.SGMLParser.entity_or_charref
entity_or_charref
Definition: sgmllib.py:61
Milter.greylist.Greylist
Definition: greylist.py:35
Milter.Base.progress
def progress(self)
Tell the MTA to wait a bit longer.
Definition: __init__.py:685
mime.MimeMessage.set_payload
def set_payload(self, val, charset=None)
Definition: mime.py:207
Milter.testctx.TestCtx._negotiate
def _negotiate(self)
Definition: testctx.py:152
mime.HTMLScriptFilter.msg
msg
Definition: mime.py:424
Milter.sgmllib.SGMLParser.parse_pi
def parse_pi(self, i)
Definition: sgmllib.py:221
mime.message_from_file
def message_from_file(fp)
Definition: mime.py:235
Milter.test.TestBase._bodyreplaced
_bodyreplaced
True if the milter replaced the message body.
Definition: test.py:35
Milter.sgmllib.SGMLParser.__starttag_text
__starttag_text
Definition: sgmllib.py:72
milter.milterContext.progress
def progress(self)
Calls smfi_progress.
Definition: milter.py:107
milter.register
def register(name, negotiate=None, unknown=None, data=None)
Register python milter with libmilter.
Definition: milter.py:174
Milter.sgmllib.SGMLParser
Definition: sgmllib.py:59
Milter.test.TestBase._macros
_macros
Macros defined.
Definition: test.py:31
Milter.Base.addheader
def addheader(self, field, value, idx=-1)
Add a mail header field.
Definition: __init__.py:585
Milter.sgmllib.SGMLParser.close
def close(self)
Definition: sgmllib.py:105
Milter.sgmllib.SGMLParseError
Definition: sgmllib.py:43
Milter.greylist.Greylist.greylist_retain
greylist_retain
Definition: greylist.py:41
Milter.testctx.TestCtx._envfromchanged
_envfromchanged
True if the milter changed the envelope from.
Definition: testctx.py:49
Milter.Milter.eom
def eom(self)
Called at the end of the message body.
Definition: __init__.py:739
Milter.Base.addrcpt
def addrcpt(self, rcpt, params=None)
Add a recipient to the message.
Definition: __init__.py:618
mime.MimeMessage.headerchange
headerchange
Provide a headerchange event for integration with Milter.
Definition: mime.py:104
Milter.greylist.Greylist.dbp
dbp
Definition: greylist.py:42
mime._defang._savname
_savname
Definition: mime.py:325
mime.MimeGenerator
Fix multipart handling in email.Generator.
Definition: mime.py:51
Milter.test.TestBase.setsymval
def setsymval(self, name, val)
Set a macro value.
Definition: test.py:62
Milter.sgmllib.SGMLParser.finish_shorttag
def finish_shorttag(self, tag, data)
Definition: sgmllib.py:323
Milter.sgmllib.SGMLParser.feed
def feed(self, data)
Definition: sgmllib.py:94
milter.error
Definition: milter.py:120
Milter.testctx.TestCtx._protocol
_protocol
Definition: testctx.py:164
Milter.plock.PLock.lockname
lockname
Definition: plock.py:19
Milter.test.TestBase._msg
_msg
The rfc822 message object for the current email being fed to the milter.
Definition: test.py:43
milter.main
def main()
Transfer control to libmilter.
Definition: milter.py:190
milter.milterContext.setpriv
def setpriv(self, priv)
Attach a Python object to this connection context.
Definition: milter.py:101
mime.HTMLScriptFilter.modified
modified
Definition: mime.py:423
Milter.Milter.log
def log(self, *msg)
Provide simple logging to sys.stdout.
Definition: __init__.py:695
mime.SGMLFilter
Definition: mime.py:347
Milter.sgmllib.SGMLParser.handle_charref
def handle_charref(self, name)
Definition: sgmllib.py:405
mime._defang._chk_name
def _chk_name(self, msg)
Definition: mime.py:312
Milter.param2dict
def param2dict(str)
Convert ESMTP parm list to keyword dictionary.
Definition: __init__.py:809
Milter.greysql.Greylist.greylist_retain
greylist_retain
Definition: greysql.py:21
Milter.Base.hello
def hello(self, hostname)
Called when the SMTP client says HELO.
Definition: __init__.py:349
Milter.greylist.Record.umis
umis
Definition: greylist.py:27
Milter.cache.AddrCache.fname
fname
Definition: cache.py:59
Milter.Base.body
def body(self, blk)
Called to supply the body of the message to the Milter by chunks.
Definition: __init__.py:438
Milter.sgmllib.SGMLParser.setnomoretags
def setnomoretags(self)
Definition: sgmllib.py:80
Milter.dns.Session.dns
def dns(self, name, qtype, cnames=None)
Cached DNS lookup.
Definition: dns.py:60
Milter.sgmllib.SGMLParser.finish_endtag
def finish_endtag(self, tag)
Definition: sgmllib.py:348
Milter.sgmllib.SGMLParser.unknown_starttag
def unknown_starttag(self, tag, attrs)
Definition: sgmllib.py:454
Milter.policy.MTAPolicy.domain
domain
Definition: policy.py:30
milter.set_helo_callback
def set_helo_callback(cb)
Definition: milter.py:131
Milter.nocallback
def nocallback(func)
Function decorator to disable callback methods.
Definition: __init__.py:145
Milter.header_leading_space
def header_leading_space(klass)
Milter leading space on headers.
Definition: __init__.py:133
Milter.testctx.TestCtx._macros
_macros
Macros defined.
Definition: testctx.py:33
Milter.Base.envfrom
def envfrom(self, f, *s)
Called when the SMTP client says MAIL FROM.
Definition: __init__.py:374
Milter.sgmllib.SGMLParser.__init__
def __init__(self, verbose=0)
Definition: sgmllib.py:65
milter.milterContext.replacebody
def replacebody(self, data)
Calls smfi_replacebody.
Definition: milter.py:98
Milter.testctx.TestCtx._bodyreplaced
_bodyreplaced
True if the milter replaced the message body.
Definition: testctx.py:41
Milter.greysql.Greylist.ignoreLastByte
ignoreLastByte
Definition: greysql.py:18
milter.set_flags
def set_flags(flags)
Enable optional milter actions.
Definition: milter.py:128
Milter.test.TestBase._stage
_stage
The protocol stage for macros returned.
Definition: test.py:45
Milter.Base.eoh
def eoh(self)
Called at the blank line that terminates the header fields.
Definition: __init__.py:434
mime.HTMLScriptFilter
Definition: mime.py:418
Milter.testctx.TestCtx._msg
_msg
The rfc822 message object for the current email being fed to the milter.
Definition: testctx.py:45
Milter.utils.iniplist
def iniplist(ipaddr, iplist)
Definition: utils.py:64
Milter.test.TestBase._symlist
_symlist
The macros returned by protocol stage.
Definition: test.py:47
Milter.sgmllib.TestSGMLParser
Definition: sgmllib.py:460
Milter.sgmllib.SGMLParser.handle_starttag
def handle_starttag(self, tag, method, attrs)
Definition: sgmllib.py:379
Milter.sgmllib.SGMLParser.convert_charref
def convert_charref(self, name)
Definition: sgmllib.py:392
Milter.testctx.TestCtx._feed_body
def _feed_body(self, bfp)
Definition: testctx.py:247
Milter.Base.envrcpt
def envrcpt(self, to, *str)
Called when the SMTP client says RCPT TO.
Definition: __init__.py:399
Milter.DisabledAction
Disabled action exception.
Definition: __init__.py:232
Milter.utils.parseaddr
def parseaddr(t)
Split email into Fullname and address.
Definition: utils.py:125
Milter.Base._actions
_actions
A bitmask of actions this connection has negotiated to use.
Definition: __init__.py:286
Milter.plock
Definition: plock.py:1
Milter.Base.header_bytes
header_bytes
Definition: __init__.py:422
Milter.policy.MTAPolicy.access_file
access_file
Definition: policy.py:32
milter.milterContext.addheader
def addheader(self, name, value, idx=-1)
Calls smfi_addheader.
Definition: milter.py:90
Milter.greysql.Greylist.greylist_expire
greylist_expire
Definition: greysql.py:20
Milter.sgmllib.SGMLParser.report_unbalanced
def report_unbalanced(self, tag)
Definition: sgmllib.py:387
Milter.policy.MTAPolicy.acf
acf
Definition: policy.py:31
Milter.greylist.Greylist.ignoreLastByte
ignoreLastByte
Definition: greylist.py:38
Milter.greysql.Greylist.conn
conn
Definition: greysql.py:22
milter.opensocket
def opensocket(rmsock)
Attempt to create the socket used to communicate with the MTA.
Definition: milter.py:185
mime.MimeMessage.getnames
def getnames(self, scan_zip=False)
Definition: mime.py:124
Milter.test.TestBase.connect
def connect(self, host='localhost', helo='spamrelay', ip='1.2.3.4')
Call the connect and helo callbacks.
Definition: test.py:229
mime._defang._check
_check
Definition: mime.py:326
Milter.plock.PLock.unlock
def unlock(self)
Definition: plock.py:59
Milter.Base.unknown
def unknown(self, cmd)
Called when the SMTP client issues an unknown command.
Definition: __init__.py:443
Milter.testctx.TestCtx._header
def _header(self, fld, val)
Definition: testctx.py:221
Milter.connect_callback
def connect_callback(ctx, hostname, family, hostaddr, nr_mask=P_NR_CONN)
Connect context if needed and invoke connect method.
Definition: __init__.py:773
Milter.greylist.Record.cnt
cnt
Definition: greylist.py:26
Milter.sgmllib.SGMLParser.error
def error(self, message)
Definition: sgmllib.py:109
mime.SGMLFilter.out
out
Definition: mime.py:353
Milter.Base.getsymval
def getsymval(self, sym)
Return the value of an MTA macro.
Definition: __init__.py:518
milter.setbacklog
def setbacklog(n)
Set socket backlog.
Definition: milter.py:208
Milter.pyip6.inet_pton
def inet_pton(p)
Definition: pyip6.py:59
Milter.sgmllib.SGMLParser.unknown_entityref
def unknown_entityref(self, ref)
Definition: sgmllib.py:457
Milter.sgmllib.SGMLParser.verbose
verbose
Definition: sgmllib.py:67
mime.MimeMessage.get_param
def get_param(self, param, failobj=None, header='content-type', unquote=True)
Definition: mime.py:106
Milter.Milter.eoh
def eoh(self)
Called at the blank line that terminates the header fields.
Definition: __init__.py:734
Milter.Milter.envfrom
def envfrom(self, f, *str)
Definition: __init__.py:713
Milter.Base.chgheader
def chgheader(self, field, idx, value)
Change the value of a mail header field.
Definition: __init__.py:599
milter.milterContext
Hold context for a milter connection.
Definition: milter.py:77
Milter.dns.Session
Definition: dns.py:32
milter.set_exception_policy
def set_exception_policy(code)
Sets the return code for untrapped Python exceptions during a callback.
Definition: milter.py:148
Milter.greylist.Greylist.greylist_expire
greylist_expire
Definition: greylist.py:40
Milter.sgmllib.SGMLParser.nomoretags
nomoretags
Definition: sgmllib.py:76
Milter.config.MilterConfigParser
Definition: config.py:7
Milter.cache.AddrCache.has_precise_key
def has_precise_key(self, sender)
Definition: cache.py:101
Milter.testctx.TestCtx._opts
_opts
Negotiated options.
Definition: testctx.py:53