diff options
author | W. Trevor King <wking@drexel.edu> | 2009-07-19 11:47:30 -0400 |
---|---|---|
committer | W. Trevor King <wking@drexel.edu> | 2009-07-19 11:47:30 -0400 |
commit | 9c956487a7d10f4b52ba4aeaceff35e90d027130 (patch) | |
tree | 336707490028f38c839c2645a1e1ebb51abeec54 /interfaces | |
parent | b53c08507cfa43bac4461dc10f1c33a6893106fd (diff) | |
download | bugseverywhere-9c956487a7d10f4b52ba4aeaceff35e90d027130.tar.gz |
Fixed multipart bug in be-handle-mail.Message.response_email()
I hadn't attached the mutipart body to the .response_header, which
meant that the reply lacked target email addresses, etc.
Diffstat (limited to 'interfaces')
-rwxr-xr-x | interfaces/email/interactive/be-handle-mail | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/interfaces/email/interactive/be-handle-mail b/interfaces/email/interactive/be-handle-mail index 5e1953e..1ca53fa 100755 --- a/interfaces/email/interactive/be-handle-mail +++ b/interfaces/email/interactive/be-handle-mail @@ -468,13 +468,12 @@ class Message (object): def response_email(self): assert len(self._response_messages) > 0 if len(self._response_messages) == 1: - ret = send_pgp_mime.attach_root(self.response_header, - self._response_messages[0]) + response_body = self._response_messages[0]) else: - ret = MIMEMultipart() + repsonse_body = MIMEMultipart() for message in self._response_messages: - ret.attach(message) - return ret + resposne_body.attach(message) + return send_pgp_mime.attach_root(self.response_header, response_body) def open_logfile(logpath=None): """ |