summaryrefslogtreecommitdiff
path: root/Mailman/GatewayManager.py
diff options
context:
space:
mode:
authorbwarsaw1998-06-19 20:03:32 +0000
committerbwarsaw1998-06-19 20:03:32 +0000
commitb26ab949a455045478da04009c14aa140fcf11ba (patch)
tree4430cebda9ae9a36febb9576bf8a55fdf8bc3b4e /Mailman/GatewayManager.py
parent1adc42317e78851d10f431e64dc507ac37afffff (diff)
downloadmailman-b26ab949a455045478da04009c14aa140fcf11ba.tar.gz
mailman-b26ab949a455045478da04009c14aa140fcf11ba.tar.zst
mailman-b26ab949a455045478da04009c14aa140fcf11ba.zip
Diffstat (limited to 'Mailman/GatewayManager.py')
-rw-r--r--Mailman/GatewayManager.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/Mailman/GatewayManager.py b/Mailman/GatewayManager.py
index f26811fcf..911b89df1 100644
--- a/Mailman/GatewayManager.py
+++ b/Mailman/GatewayManager.py
@@ -16,7 +16,11 @@
'''Mixin class for gatewaying mail to news, and news to mail.'''
+
+# XXX: This should be integrated with the Errors module
ImproperNNTPConfigError = "ImproperNNTPConfigError"
+
+
class GatewayManager:
def InitVars(self):
# Configurable
@@ -88,7 +92,7 @@ class GatewayManager:
return eval(l)
def SendMailToNewsGroup(self, mail_msg):
- import mm_message
+ import Message
import os
#if self.gateway_to_news == 0:
# return
@@ -103,7 +107,7 @@ class GatewayManager:
x = os.fork()
if not x:
# Now make the news message...
- msg = mm_message.NewsMessage(mail_msg)
+ msg = Message.NewsMessage(mail_msg)
import nntplib,string