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:295
Milter.Base.abort
def abort(self)
Called when the connection is abnormally terminated.
Definition: __init__.py:372
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:88
Milter.sgmllib.SGMLParser.rawdata
rawdata
Definition: sgmllib.py:74
Milter.Base._setctx
def _setctx(self, ctx)
Attach this Milter to the low level milter.milterContext object.
Definition: __init__.py:242
mime.SGMLFilter.handle_special
def handle_special(self, data)
Definition: mime.py:446
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:285
Milter.sgmllib.SGMLParser.lasttag
lasttag
Definition: sgmllib.py:76
Milter.testctx.TestCtx._delrcpt
_delrcpt
List of recipients deleted.
Definition: testctx.py:29
mime.MimeMessage
Enhance email.message.Message.
Definition: mime.py:175
Milter.sgmllib.SGMLParser.parse_starttag
def parse_starttag(self, i)
Definition: sgmllib.py:238
mime.MimeMessage.get_payload
def get_payload(self, i=None, decode=False)
Definition: mime.py:279
Milter.config.MilterConfigParser.get
def get(self, sect, opt)
Definition: config.py:14
Milter.testctx.TestCtx._eom
def _eom(self)
Definition: testctx.py:242
Milter.sgmllib.SGMLParser.handle_endtag
def handle_endtag(self, tag, method)
Definition: sgmllib.py:384
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:644
Milter.Milter.close
def close(self)
Called when the connection is closed.
Definition: __init__.py:671
mime.unquote
def unquote(s)
Definition: mime.py:146
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:480
Milter.uniqueID
def uniqueID()
Definition: __init__.py:29
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:156
mime._defang.__call__
def __call__(self, msg, savname=None, check=check_ext, scan_rfc822=True, scan_zip=False)
Definition: mime.py:389
Milter.Base.data
def data(self)
Called when the SMTP client says DATA.
Definition: __init__.py:350
Milter.Milter.connect
def connect(self, hostname, family, hostaddr)
Called for each connection to the MTA.
Definition: __init__.py:623
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:666
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:439
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:418
mime.MimeMessage.submsg
submsg
Definition: mime.py:180
milter.set_close_callback
def set_close_callback(cb)
Definition: milter.py:138
Milter.envcallback
def envcallback(c, args)
Definition: __init__.py:738
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:650
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:213
Milter.sgmllib.SGMLParser.finish_starttag
def finish_starttag(self, tag, attrs)
Definition: sgmllib.py:331
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:684
Milter.greylist.Record.lastseen
lastseen
Definition: greylist.py:25
Milter.noreply
def noreply(func)
Function decorator to disable callback reply.
Definition: __init__.py:165
Milter.symlist
def symlist(*syms)
Function decorator to set macros used in a callback.
Definition: __init__.py:188
Milter.Base.header
def header(self, field, value)
Called for each header field in the message body.
Definition: __init__.py:353
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:554
mime.zipnames
def zipnames(txt)
Return a list of filenames in a zip file.
Definition: mime.py:122
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:489
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:93
mime._defang.scan_rfc822
scan_rfc822
Definition: mime.py:394
Milter.negotiate_callback
def negotiate_callback(ctx, opts)
Connect context to connection instance and return enabled callbacks.
Definition: __init__.py:688
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:78
milter.setdbg
def setdbg(lev)
Set the libmilter debugging level.
Definition: milter.py:198
mime.MimeMessage.modified
modified
Definition: mime.py:181
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:120
Milter.sgmllib.TestSGMLParser.testdata
testdata
Definition: sgmllib.py:464
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:387
Milter.sgmllib
Definition: sgmllib.py:1
Milter.sgmllib.TestSGMLParser.close
def close(self)
Definition: sgmllib.py:511
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.envfrom
def envfrom(self, f, *str)
Called when the SMTP client says MAIL FROM.
Definition: __init__.py:333
Milter.Base.chgfrom
def chgfrom(self, sender, params=None)
Change the SMTP envelope sender address.
Definition: __init__.py:585
Milter.runmilter
def runmilter(name, socketname, timeout=0, rmsock=True)
Run the milter.
Definition: __init__.py:757
mime._defang
Definition: mime.py:374
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:395
Milter.sgmllib.SGMLParser.stack
stack
Definition: sgmllib.py:75
Milter.Base.connect
def connect(self, hostname, family, hostaddr)
Called for each connection to the MTA.
Definition: __init__.py:317
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:242
Milter.sgmllib.SGMLParser.goahead
def goahead(self, end)
Definition: sgmllib.py:116
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:168
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:71
Milter.Base
A do "nothing" Milter base class representing an SMTP connection.
Definition: __init__.py:238
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:49
Milter.cache.AddrCache
Definition: cache.py:53
Milter.rejected_recipients
def rejected_recipients(klass)
Milter rejected recipients.
Definition: __init__.py:111
Milter.dictfromlist
def dictfromlist(args)
Convert ESMTP parameters with values to a keyword dictionary.
Definition: __init__.py:717
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:415
Milter.close_callback
def close_callback(ctx)
Disconnect milterContext and call close method.
Definition: __init__.py:706
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:451
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:472
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:568
Milter.Base.setreply
def setreply(self, rcode, xcode=None, msg=None, *ml)
Set the SMTP reply code and message.
Definition: __init__.py:460
Milter.test.TestBase._headerschanged
_headerschanged
True if the milter changed any headers.
Definition: test.py:37
Milter.dsn.Vars
Definition: dsn.py:164
Milter.sgmllib.SGMLParser.unknown_charref
def unknown_charref(self, ref)
Definition: sgmllib.py:457
Milter.Base._protocol
_protocol
A bitmask of protocol options this connection has negotiated.
Definition: __init__.py:280
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:403
Milter.sgmllib.SGMLParser.parse_endtag
def parse_endtag(self, i)
Definition: sgmllib.py:311
Milter.utils.decode
def decode(s, convert_eols=None)
Fix email.base64mime.decode to add any missing padding.
Definition: utils.py:161
Milter.sgmllib.SGMLParser.handle_entityref
def handle_entityref(self, name)
Definition: sgmllib.py:430
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
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:254
Milter.dsn.send_dsn
def send_dsn(mailfrom, receiver, msg=None, timeout=600, session=None, ourfrom='')
Send DSN.
Definition: dsn.py:93
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:456
Milter.Base.quarantine
def quarantine(self, reason)
Quarantine the message.
Definition: __init__.py:599
Milter.dns.Session.cache
cache
Definition: dns.py:36
Milter.sgmllib.TestSGMLParser.__init__
def __init__(self, verbose=0)
Definition: sgmllib.py:463
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:613
milter.set_envrcpt_callback
def set_envrcpt_callback(cb)
Definition: milter.py:133
Milter.testctx.TestCtx._eoh
def _eoh(self)
Definition: testctx.py:224
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:253
Milter.testctx.TestCtx._data
def _data(self)
Definition: testctx.py:213
Milter.cache.AddrCache.__getitem__
def __getitem__(self, sender)
Definition: cache.py:127
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
mime._defang.scan_html
scan_html
Definition: mime.py:377
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:300
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
mime.check_attachments
def check_attachments(msg, check)
Definition: mime.py:360
Milter.config.MilterConfigParser.defaults
defaults
Definition: config.py:8
Milter.Base._ctx
_ctx
The low level milter.milterContext object.
Definition: __init__.py:244
Milter.utils.parse_addr
def parse_addr(t)
Definition: utils.py:171
Milter.pyip6.inet_ntop
def inet_ntop(s)
Definition: pyip6.py:16
Milter.sgmllib.SGMLParser.entitydefs
entitydefs
Definition: sgmllib.py:415
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:629
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:62
Milter.greylist.Greylist
Definition: greylist.py:35
Milter.Base.progress
def progress(self)
Tell the MTA to wait a bit longer.
Definition: __init__.py:607
mime.MimeMessage.set_payload
def set_payload(self, val, charset=None)
Definition: mime.py:285
Milter.testctx.TestCtx._negotiate
def _negotiate(self)
Definition: testctx.py:152
mime.HTMLScriptFilter.msg
msg
Definition: mime.py:491
Milter.sgmllib.SGMLParser.parse_pi
def parse_pi(self, i)
Definition: sgmllib.py:222
mime.message_from_file
def message_from_file(fp)
Definition: mime.py:309
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:73
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:60
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:507
Milter.sgmllib.SGMLParser.close
def close(self)
Definition: sgmllib.py:106
Milter.sgmllib.SGMLParseError
Definition: sgmllib.py:44
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:661
Milter.Base.addrcpt
def addrcpt(self, rcpt, params=None)
Add a recipient to the message.
Definition: __init__.py:540
mime.MimeMessage.headerchange
headerchange
Definition: mime.py:187
Milter.greylist.Greylist.dbp
dbp
Definition: greylist.py:42
mime._defang._savname
_savname
Definition: mime.py:392
mime.MimeGenerator
Fix multipart handling in email.Generator.
Definition: mime.py:134
Milter.test.TestBase.setsymval
def setsymval(self, name, val)
Set a macro value.
Definition: test.py:57
Milter.sgmllib.SGMLParser.finish_shorttag
def finish_shorttag(self, tag, data)
Definition: sgmllib.py:324
Milter.sgmllib.SGMLParser.feed
def feed(self, data)
Definition: sgmllib.py:95
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:490
Milter.Milter.log
def log(self, *msg)
Provide simple logging to sys.stdout.
Definition: __init__.py:617
mime.SGMLFilter
Definition: mime.py:414
Milter.sgmllib.SGMLParser.handle_charref
def handle_charref(self, name)
Definition: sgmllib.py:406
mime._defang._chk_name
def _chk_name(self, msg)
Definition: mime.py:379
Milter.param2dict
def param2dict(str)
Convert ESMTP parm list to keyword dictionary.
Definition: __init__.py:731
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:322
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:360
Milter.sgmllib.SGMLParser.setnomoretags
def setnomoretags(self)
Definition: sgmllib.py:81
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:349
Milter.sgmllib.SGMLParser.unknown_starttag
def unknown_starttag(self, tag, attrs)
Definition: sgmllib.py:455
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:144
Milter.header_leading_space
def header_leading_space(klass)
Milter leading space on headers.
Definition: __init__.py:132
Milter.testctx.TestCtx._macros
_macros
Macros defined.
Definition: testctx.py:33
Milter.sgmllib.SGMLParser.__init__
def __init__(self, verbose=0)
Definition: sgmllib.py:66
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:356
mime.HTMLScriptFilter
Definition: mime.py:485
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:461
Milter.sgmllib.SGMLParser.handle_starttag
def handle_starttag(self, tag, method, attrs)
Definition: sgmllib.py:380
Milter.sgmllib.SGMLParser.convert_charref
def convert_charref(self, name)
Definition: sgmllib.py:393
Milter.testctx.TestCtx._feed_body
def _feed_body(self, bfp)
Definition: testctx.py:232
Milter.Base.envrcpt
def envrcpt(self, to, *str)
Called when the SMTP client says RCPT TO.
Definition: __init__.py:344
Milter.DisabledAction
Disabled action exception.
Definition: __init__.py:205
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:259
Milter.plock
Definition: plock.py:1
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:388
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:207
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:222
mime._defang._check
_check
Definition: mime.py:393
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:365
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:695
Milter.greylist.Record.cnt
cnt
Definition: greylist.py:26
Milter.sgmllib.SGMLParser.error
def error(self, message)
Definition: sgmllib.py:110
mime.SGMLFilter.out
out
Definition: mime.py:420
Milter.Base.getsymval
def getsymval(self, sym)
Return the value of an MTA macro.
Definition: __init__.py:440
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:458
Milter.sgmllib.SGMLParser.verbose
verbose
Definition: sgmllib.py:68
mime.MimeMessage.get_param
def get_param(self, param, failobj=None, header='content-type', unquote=True)
Definition: mime.py:189
Milter.Milter.eoh
def eoh(self)
Called at the blank line that terminates the header fields.
Definition: __init__.py:656
Milter.Milter.envfrom
def envfrom(self, f, *str)
Definition: __init__.py:635
Milter.Base.chgheader
def chgheader(self, field, idx, value)
Change the value of a mail header field.
Definition: __init__.py:521
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:77
Milter.config.MilterConfigParser
Definition: config.py:4
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