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
7eb2fb09
Commit
7eb2fb09
authored
20 years ago
by
Stuart Gathman
Browse files
Options
Downloads
Patches
Plain Diff
Properly log exceptions from pydspam
parent
07c56ce6
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
bms.py
+6
-1
6 additions, 1 deletion
bms.py
with
6 additions
and
1 deletion
bms.py
+
6
−
1
View file @
7eb2fb09
#!/usr/bin/env python
#!/usr/bin/env python
# A simple milter that has grown quite a bit.
# A simple milter that has grown quite a bit.
# $Log$
# $Log$
# Revision 1.7 2005/06/04 19:41:16 customdesigned
# Fix bugs from testing RPM
#
# Revision 1.6 2005/06/03 04:57:05 customdesigned
# Revision 1.6 2005/06/03 04:57:05 customdesigned
# Organize config reader by section. Create defang section.
# Organize config reader by section. Create defang section.
#
#
...
@@ -206,6 +209,7 @@ import mime
...
@@ -206,6 +209,7 @@ import mime
import
email.Errors
import
email.Errors
import
Milter
import
Milter
import
tempfile
import
tempfile
import
traceback
import
ConfigParser
import
ConfigParser
import
time
import
time
import
re
import
re
...
@@ -1014,7 +1018,8 @@ class bmsMilter(Milter.Milter):
...
@@ -1014,7 +1018,8 @@ class bmsMilter(Milter.Milter):
self
.
fp
=
StringIO
.
StringIO
(
txt
)
self
.
fp
=
StringIO
.
StringIO
(
txt
)
modified
=
True
modified
=
True
except
Exception
,
x
:
except
Exception
,
x
:
print
x
self
.
log
(
"
check_spam:
"
,
x
)
traceback
.
print_exc
()
# screen if no recipients are dspam_users
# screen if no recipients are dspam_users
if
not
modified
and
dspam_screener
and
not
self
.
internal_connection
\
if
not
modified
and
dspam_screener
and
not
self
.
internal_connection
\
and
self
.
dspam
:
and
self
.
dspam
:
...
...
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