Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
pymilter
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Container registry
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
misc
pymilter
Commits
144fe264
Commit
144fe264
authored
Jun 13, 2009
by
Stuart Gathman
Browse files
Options
Downloads
Patches
Plain Diff
Document _actions, _protocol
parent
a3530d4c
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
Doxyfile
+1
-1
1 addition, 1 deletion
Doxyfile
Milter/__init__.py
+22
-0
22 additions, 0 deletions
Milter/__init__.py
with
23 additions
and
1 deletion
Doxyfile
+
1
−
1
View file @
144fe264
...
@@ -291,7 +291,7 @@ EXTRACT_ALL = NO
...
@@ -291,7 +291,7 @@ EXTRACT_ALL = NO
# If the EXTRACT_PRIVATE tag is set to YES all private members of a class
# If the EXTRACT_PRIVATE tag is set to YES all private members of a class
# will be included in the documentation.
# will be included in the documentation.
EXTRACT_PRIVATE =
NO
EXTRACT_PRIVATE =
YES
# If the EXTRACT_STATIC tag is set to YES all static members of a file
# If the EXTRACT_STATIC tag is set to YES all static members of a file
# will be included in the documentation.
# will be included in the documentation.
...
...
This diff is collapsed.
Click to expand it.
Milter/__init__.py
+
22
−
0
View file @
144fe264
...
@@ -98,6 +98,28 @@ class Base(object):
...
@@ -98,6 +98,28 @@ class Base(object):
self
.
_protocol
=
0
# no protocol options by default
self
.
_protocol
=
0
# no protocol options by default
if
ctx
:
if
ctx
:
ctx
.
setpriv
(
self
)
ctx
.
setpriv
(
self
)
## @var _actions
# A bitmask of actions this milter has negotiated to use.
# By default, all actions are enabled. This may be changed
# by calling <code>milter.set_flags</code>, or by overriding
# the negotiate callback. The bits include:
# <code>ADDHDRS,CHGBODY,MODBODY,ADDRCPT,ADDRCPT_PAR,DELRCPT
# CHGHDRS,CURR_ACTS,QUARANTINE,CHGFROM,SETSMLIST</code>
#
## @var _protocol
# A class var with a bitmask of protocol options negotiated.
# The bits generally indicate that a particular step should be
# skipped, since previous versions of the milter protocol had
# no provision for skipping steps.
# The bits include: <code>
# P_RCPT_REJ P_NR_CONN P_NR_HELO P_NR_MAIL P_NR_RCPT P_NR_DATA P_NR_UNKN
# P_NR_EOH P_NR_BODY P_NR_HDR P_NOCONNECT P_NOHELO P_NOMAIL P_NORCPT
# P_NODATA P_NOUNKNOWN P_NOEOH P_NOBODY P_NOHDRS P_HDR_LEADSPC P_SKIP
# </code> (all under the Milter namespace) and
# <code>Milter.ALL_OPTS</code> is all options available when
# the <code>milter</code> module was compiled.
## Defined by subclasses to write log messages.
## Defined by subclasses to write log messages.
def
log
(
self
,
*
msg
):
pass
def
log
(
self
,
*
msg
):
pass
## Called for each connection to the MTA.
## Called for each connection to the MTA.
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
sign in
to comment