+

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

Benjamin Renard [2012-04-20 15:53:28]
MantisSMTPServer : add usage of add_attachment_to_issue() in add_new_issue_to_project_from_msg()
Filename
src/usr/share/mantis-smtp/MantisSMTPServer.py
diff --git a/src/usr/share/mantis-smtp/MantisSMTPServer.py b/src/usr/share/mantis-smtp/MantisSMTPServer.py
index af49387..1c2ca68 100755
--- a/src/usr/share/mantis-smtp/MantisSMTPServer.py
+++ b/src/usr/share/mantis-smtp/MantisSMTPServer.py
@@ -129,6 +129,7 @@ class MantisSMTPServer(smtpd.SMTPServer):
 		issue_id = self.ws.add_issue_to_project(msg.mailfrom,project_infos,msg.subject(),msg.get_text())
 		if issue_id:
 			logging.info('Issue added with id %s' % issue_id)
+			self.add_attachment_to_issue(issue_id,msg)
 			return issue_id
 		else:
 			logging.error('Error during add issue')
ViewGit