コード例 #1
0
ファイル: OutgoingRunner.py プロジェクト: EmilyDirsh/Paperboy
 def __init__(self, slice=None, numslices=1):
     Runner.__init__(self, slice, numslices)
     BounceMixin.__init__(self)
     # We look this function up only at startup time
     modname = 'Mailman.Handlers.' + mm_cfg.DELIVERY_MODULE
     mod = __import__(modname)
     self._func = getattr(sys.modules[modname], 'process')
     # This prevents smtp server connection problems from filling up the
     # error log.  It gets reset if the message was successfully sent, and
     # set if there was a socket.error.
     self.__logged = False
     self.__retryq = Switchboard(mm_cfg.RETRYQUEUE_DIR)
コード例 #2
0
 def __init__(self, slice=None, numslices=1):
     Runner.__init__(self, slice, numslices)
     BounceMixin.__init__(self)
     # We look this function up only at startup time
     modname = 'Mailman.Handlers.' + mm_cfg.DELIVERY_MODULE
     mod = __import__(modname)
     self._func = getattr(sys.modules[modname], 'process')
     # This prevents smtp server connection problems from filling up the
     # error log.  It gets reset if the message was successfully sent, and
     # set if there was a socket.error.
     self.__logged = False
     self.__retryq = Switchboard(mm_cfg.RETRYQUEUE_DIR)
コード例 #3
0
ファイル: OutgoingRunner.py プロジェクト: EmilyDirsh/Paperboy
 def _cleanup(self):
     BounceMixin._cleanup(self)
     Runner._cleanup(self)
コード例 #4
0
 def _cleanup(self):
     BounceMixin._cleanup(self)
     Runner._cleanup(self)