Пример #1
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)
Пример #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
 def _cleanup(self):
     BounceMixin._cleanup(self)
     Runner._cleanup(self)
Пример #4
0
 def __init__(self, slice=None, numslices=1):
     Runner.__init__(self, slice, numslices)
     BounceMixin.__init__(self)
Пример #5
0
 def __init__(self, slice=None, numslices=1):
     Runner.__init__(self, slice, numslices)
     self.__outq = Switchboard(mm_cfg.OUTQUEUE_DIR)
Пример #6
0
 def _log(self, exc):
     """Log the exception in a log file and as an OOPS."""
     Runner._log(self, exc)
     error_utility = ErrorReportingUtility()
     error_utility.configure(section_name='mailman')
     error_utility.raising(sys.exc_info())
Пример #7
0
 def _cleanup(self):
     BounceMixin._cleanup(self)
     Runner._cleanup(self)
Пример #8
0
 def __init__(self, slice=None, numslices=1):
     Runner.__init__(self, slice, numslices)
     BounceMixin.__init__(self)
 def __init__(self, slice=None, numslices=1):
     Runner.__init__(self, slice, numslices)
     self.__outq = Switchboard(mm_cfg.OUTQUEUE_DIR)
Пример #10
0
 def _log(self, exc):
     """Log the exception in a log file and as an OOPS."""
     Runner._log(self, exc)
     error_utility = ErrorReportingUtility()
     error_utility.configure(section_name="mailman")
     error_utility.raising(sys.exc_info())