summaryrefslogtreecommitdiff
path: root/Mailman/GatewayManager.py
diff options
context:
space:
mode:
authorbwarsaw1998-12-30 23:42:53 +0000
committerbwarsaw1998-12-30 23:42:53 +0000
commit9025403079af04caa2a03f874b24bcb75c1868e7 (patch)
tree54317bc391a6a3ca520f9cd26642388554a35320 /Mailman/GatewayManager.py
parent891cf7d92d9aa062f7f1e89729f479db09888a15 (diff)
downloadmailman-9025403079af04caa2a03f874b24bcb75c1868e7.tar.gz
mailman-9025403079af04caa2a03f874b24bcb75c1868e7.tar.zst
mailman-9025403079af04caa2a03f874b24bcb75c1868e7.zip
Diffstat (limited to 'Mailman/GatewayManager.py')
-rw-r--r--Mailman/GatewayManager.py14
1 files changed, 7 insertions, 7 deletions
diff --git a/Mailman/GatewayManager.py b/Mailman/GatewayManager.py
index 897e9e53d..37d33bfea 100644
--- a/Mailman/GatewayManager.py
+++ b/Mailman/GatewayManager.py
@@ -102,15 +102,15 @@ class GatewayManager:
def SendMailToNewsGroup(self, mail_msg):
import Message
- #if self.gateway_to_news == 0:
- # return
+ error = []
if not self.linked_newsgroup:
- self.LogMsg('error',
- 'NNTP gateway improperly configured: no newsgroup')
- return
+ error.append('no newsgroup')
if not self.nntp_host:
- self.LogMsg('error',
- 'NNTP gateway improperly configured: no NNTP host')
+ error.append('no NNTP host')
+ if error:
+ msg = 'NNTP gateway improperly configured: ' + \
+ string.join(error, ', ')
+ self.LogMsg('error', msg)
return
try:
if self.tmp_prevent_gate: