From: Andrew V. <av...@us...> - 2005-04-14 07:46:48
|
Update of /cvsroot/mailmanager/mailmanager/Extensions In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv24733/Extensions Modified Files: Tag: db-backend TicketPluggableBrain.py Log Message: Fixed a bug where blank messages would not be sent. Index: TicketPluggableBrain.py =================================================================== RCS file: /cvsroot/mailmanager/mailmanager/Extensions/Attic/TicketPluggableBrain.py,v retrieving revision 1.1.2.13 retrieving revision 1.1.2.14 diff -u -d -r1.1.2.13 -r1.1.2.14 --- TicketPluggableBrain.py 13 Apr 2005 19:51:06 -0000 1.1.2.13 +++ TicketPluggableBrain.py 14 Apr 2005 07:46:36 -0000 1.1.2.14 @@ -181,6 +181,13 @@ dangerous=False) if sendmail: # Email the message - XXX account_signature missing + # A very irritating hack. The DA will not accept None as a null + # so we need to convert our Nones to the empty string. + # See http://www.zope.org/Collectors/Zope/556 + if html_body is None: + html_body='' + if body is None: + body='' msg, recipients = self.createMessage( mail_to, self.account_id, attachments, cc, bcc, subject, None, body, html_body, user_signature, '', REQUEST) |