Store copy of msg file just for bouncer, when using
This commit is contained in:
parent
4c19bc4118
commit
1910128473
|
@ -115,7 +115,8 @@ class BounceHandler(object):
|
|||
to be a bounce etc.
|
||||
"""
|
||||
with open(path, 'rt') as f:
|
||||
msg = message_from_string(f.read())
|
||||
text = f.read()
|
||||
msg = message_from_string(text)
|
||||
|
||||
warnings, failures = self.get_all_failures(msg)
|
||||
if failures:
|
||||
|
@ -123,6 +124,7 @@ class BounceHandler(object):
|
|||
bounce = self.make_bounce(msg, failures)
|
||||
session.add(bounce)
|
||||
session.flush()
|
||||
self.store_message_file(bounce, text)
|
||||
self.process_bounce(bounce)
|
||||
|
||||
elif warnings:
|
||||
|
|
Loading…
Reference in a new issue