comparison roundup/mailgw.py @ 1095:711f2ecee20f

unit tests pass again
author Richard Jones <richard@users.sourceforge.net>
date Tue, 10 Sep 2002 02:37:28 +0000
parents 9b910e8d987d
children fa7df238e2d4
comparison
equal deleted inserted replaced
1094:854d45f8b745 1095:711f2ecee20f
71 set() method to add the message to the item's spool; in the second case we 71 set() method to add the message to the item's spool; in the second case we
72 are calling the create() method to create a new node). If an auditor raises 72 are calling the create() method to create a new node). If an auditor raises
73 an exception, the original message is bounced back to the sender with the 73 an exception, the original message is bounced back to the sender with the
74 explanatory message given in the exception. 74 explanatory message given in the exception.
75 75
76 $Id: mailgw.py,v 1.83 2002-09-10 00:18:20 richard Exp $ 76 $Id: mailgw.py,v 1.84 2002-09-10 02:37:27 richard Exp $
77 ''' 77 '''
78
79 78
80 import string, re, os, mimetools, cStringIO, smtplib, socket, binascii, quopri 79 import string, re, os, mimetools, cStringIO, smtplib, socket, binascii, quopri
81 import time, random 80 import time, random
82 import traceback, MimeWriter 81 import traceback, MimeWriter
83 import hyperdb, date, password 82 import hyperdb, date, password
317 if m: 316 if m:
318 # get the classname 317 # get the classname
319 classname = m.group('classname') 318 classname = m.group('classname')
320 if classname is None: 319 if classname is None:
321 # no classname, fallback on the default 320 # no classname, fallback on the default
322 if hasattr(self.instance, 'MAIL_DEFAULT_CLASS') and \ 321 if hasattr(self.instance.config, 'MAIL_DEFAULT_CLASS') and \
323 self.instance.config.MAIL_DEFAULT_CLASS: 322 self.instance.config.MAIL_DEFAULT_CLASS:
324 classname = self.instance.config.MAIL_DEFAULT_CLASS 323 classname = self.instance.config.MAIL_DEFAULT_CLASS
325 else: 324 else:
326 # fail 325 # fail
327 m = None 326 m = None

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