comparison roundup/mailgw.py @ 3156:e1da7b5b04ab maint-0.8

merge from HEAD
author Richard Jones <richard@users.sourceforge.net>
date Mon, 14 Feb 2005 02:55:31 +0000
parents 35c515c072dd
children f412ae175b4d
comparison
equal deleted inserted replaced
3154:62b1a54107e6 3156:e1da7b5b04ab
70 set() method to add the message to the item's spool; in the second case we 70 set() method to add the message to the item's spool; in the second case we
71 are calling the create() method to create a new node). If an auditor raises 71 are calling the create() method to create a new node). If an auditor raises
72 an exception, the original message is bounced back to the sender with the 72 an exception, the original message is bounced back to the sender with the
73 explanatory message given in the exception. 73 explanatory message given in the exception.
74 74
75 $Id: mailgw.py,v 1.159.2.1 2005-01-03 02:53:41 richard Exp $ 75 $Id: mailgw.py,v 1.159.2.2 2005-02-14 02:55:30 richard Exp $
76 """ 76 """
77 __docformat__ = 'restructuredtext' 77 __docformat__ = 'restructuredtext'
78 78
79 import string, re, os, mimetools, cStringIO, smtplib, socket, binascii, quopri 79 import string, re, os, mimetools, cStringIO, smtplib, socket, binascii, quopri
80 import time, random, sys 80 import time, random, sys, logging
81 import traceback, MimeWriter, rfc822 81 import traceback, MimeWriter, rfc822
82 82
83 from roundup import hyperdb, date, password, rfc2822, exceptions 83 from roundup import hyperdb, date, password, rfc2822, exceptions
84 from roundup.mailer import Mailer 84 from roundup.mailer import Mailer
85 85
317 for option, value in self.arguments: 317 for option, value in self.arguments:
318 if option == '-c': 318 if option == '-c':
319 self.default_class = value.strip() 319 self.default_class = value.strip()
320 320
321 self.mailer = Mailer(instance.config) 321 self.mailer = Mailer(instance.config)
322 self.logger = instance.config.logging.getLogger('mailgw') 322 self.logger = getLogger('mailgw')
323 323
324 # should we trap exceptions (normal usage) or pass them through 324 # should we trap exceptions (normal usage) or pass them through
325 # (for testing) 325 # (for testing)
326 self.trapExceptions = 1 326 self.trapExceptions = 1
327 327

Roundup Issue Tracker: http://roundup-tracker.org/