You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@allura.apache.org by br...@apache.org on 2020/10/12 21:21:46 UTC

[allura] 09/16: [#8378] handle additional args in SMTP process_message overrides

This is an automated email from the ASF dual-hosted git repository.

brondsem pushed a commit to branch db/8378
in repository https://gitbox.apache.org/repos/asf/allura.git

commit 02d41d8c0c65496fa54f1eb5cf4e319318dc374c
Author: Dave Brondsema <da...@brondsema.net>
AuthorDate: Thu Oct 8 17:09:07 2020 -0400

    [#8378] handle additional args in SMTP process_message overrides
---
 Allura/allura/command/smtp_server.py | 2 +-
 AlluraTest/alluratest/smtp_debug.py  | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/Allura/allura/command/smtp_server.py b/Allura/allura/command/smtp_server.py
index 535560f..c3d3c1b 100644
--- a/Allura/allura/command/smtp_server.py
+++ b/Allura/allura/command/smtp_server.py
@@ -52,7 +52,7 @@ class SMTPServerCommand(base.Command):
 
 class MailServer(smtpd.SMTPServer):
 
-    def process_message(self, peer, mailfrom, rcpttos, data):
+    def process_message(self, peer, mailfrom, rcpttos, data, **kwargs):
         try:
             base.log.info('Msg Received from %s for %s', mailfrom, rcpttos)
             base.log.info(' (%d bytes)', len(data))
diff --git a/AlluraTest/alluratest/smtp_debug.py b/AlluraTest/alluratest/smtp_debug.py
index 301c164..9721e44 100644
--- a/AlluraTest/alluratest/smtp_debug.py
+++ b/AlluraTest/alluratest/smtp_debug.py
@@ -25,6 +25,6 @@ from smtpd import DebuggingServer
 
 class BetterDebuggingServer(DebuggingServer, object):
 
-    def process_message(self, peer, mailfrom, rcpttos, data):
+    def process_message(self, peer, mailfrom, rcpttos, data, **kwargs):
         print('TO: ' + ', '.join(rcpttos))
         super(BetterDebuggingServer, self).process_message(peer, mailfrom, rcpttos, data)
\ No newline at end of file