MantisSMTPServer : add usage of add_attachment_to_issue() in add_new_issue_to_project_from_msg()
Benjamin Renard

Benjamin Renard commited on 2012-04-20 15:53:28
Showing 1 changed files, with 1 additions and 0 deletions.

... ...
@@ -129,6 +129,7 @@ class MantisSMTPServer(smtpd.SMTPServer):
129 129
 		issue_id = self.ws.add_issue_to_project(msg.mailfrom,project_infos,msg.subject(),msg.get_text())
130 130
 		if issue_id:
131 131
 			logging.info('Issue added with id %s' % issue_id)
132
+			self.add_attachment_to_issue(issue_id,msg)
132 133
 			return issue_id
133 134
 		else:
134 135
 			logging.error('Error during add issue')
135 136