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
ded14122
Commit
ded14122
authored
8 years ago
by
Stuart D. Gathman
Browse files
Options
Downloads
Patches
Plain Diff
Record new envfrom for TestMilter.chgfrom
parent
627a2be4
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
Milter/test.py
+4
-2
4 additions, 2 deletions
Milter/test.py
with
4 additions
and
2 deletions
Milter/test.py
+
4
−
2
View file @
ded14122
...
...
@@ -64,9 +64,10 @@ class TestBase(object):
def
chgfrom
(
self
,
sender
,
params
=
None
):
if
not
self
.
_body
:
raise
IOError
,
"
chg
header
not called from eom()
"
raise
IOError
,
"
chg
from
not called from eom()
"
self
.
log
(
'
chgfrom: sender=%s
'
%
(
sender
))
self
.
_envfromchanged
=
True
self
.
_sender
=
sender
# FIXME: rfc822 indexing does not really reflect the way chg/add header
# work for a %milter
...
...
@@ -131,8 +132,9 @@ class TestBase(object):
self
.
_bodyreplaced
=
False
self
.
_headerschanged
=
False
self
.
_reply
=
None
self
.
_sender
=
'
<%s>
'
%
sender
msg
=
rfc822
.
Message
(
fp
)
rc
=
self
.
envfrom
(
'
<%s>
'
%
sender
)
rc
=
self
.
envfrom
(
self
.
_
sender
)
if
rc
!=
Milter
.
CONTINUE
:
return
rc
for
rcpt
in
(
rcpt
,)
+
rcpts
:
rc
=
self
.
envrcpt
(
'
<%s>
'
%
rcpt
)
...
...
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
register
or
sign in
to comment