diff 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
line wrap: on
line diff
--- a/roundup/mailgw.py	Tue Sep 10 01:27:13 2002 +0000
+++ b/roundup/mailgw.py	Tue Sep 10 02:37:28 2002 +0000
@@ -73,10 +73,9 @@
 an exception, the original message is bounced back to the sender with the
 explanatory message given in the exception. 
 
-$Id: mailgw.py,v 1.83 2002-09-10 00:18:20 richard Exp $
+$Id: mailgw.py,v 1.84 2002-09-10 02:37:27 richard Exp $
 '''
 
-
 import string, re, os, mimetools, cStringIO, smtplib, socket, binascii, quopri
 import time, random
 import traceback, MimeWriter
@@ -319,7 +318,7 @@
             classname = m.group('classname')
             if classname is None:
                 # no classname, fallback on the default
-                if hasattr(self.instance, 'MAIL_DEFAULT_CLASS') and \
+                if hasattr(self.instance.config, 'MAIL_DEFAULT_CLASS') and \
                         self.instance.config.MAIL_DEFAULT_CLASS:
                     classname = self.instance.config.MAIL_DEFAULT_CLASS
                 else:

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