Mercurial > p > roundup > code
diff roundup/mailgw.py @ 1613:12637989ca4b
get yer defaults right, mate
| author | Richard Jones <richard@users.sourceforge.net> |
|---|---|
| date | Thu, 24 Apr 2003 07:22:08 +0000 |
| parents | e109d59f232d |
| children | bc43a9677217 |
line wrap: on
line diff
--- a/roundup/mailgw.py Thu Apr 24 07:20:00 2003 +0000 +++ b/roundup/mailgw.py Thu Apr 24 07:22:08 2003 +0000 @@ -73,7 +73,7 @@ an exception, the original message is bounced back to the sender with the explanatory message given in the exception. -$Id: mailgw.py,v 1.118 2003-04-24 07:19:58 richard Exp $ +$Id: mailgw.py,v 1.119 2003-04-24 07:22:08 richard Exp $ ''' import string, re, os, mimetools, cStringIO, smtplib, socket, binascii, quopri @@ -141,10 +141,10 @@ use_tls = getattr(config, 'MAILHOST_TLS', 'no') if use_tls == 'yes' # do we have key files too? - keyfile = getattr(config, 'MAILHOST_TLS_KEYFILE', None) - if keyfile is not None: - certfile = getattr(config, 'MAILHOST_TLS_CERTFILE', None) - if certfile is not None: + keyfile = getattr(config, 'MAILHOST_TLS_KEYFILE', '') + if keyfile: + certfile = getattr(config, 'MAILHOST_TLS_CERTFILE', '') + if certfile: args = (keyfile, certfile) else: args = (keyfile, )
