Benjamin Renard commited on 2012-04-20 15:55:10
Showing 1 changed files, with 6 additions and 0 deletions.
| ... | ... |
@@ -133,6 +133,12 @@ class MantisSMTPServer(smtpd.SMTPServer): |
| 133 | 133 |
return issue_id |
| 134 | 134 |
else: |
| 135 | 135 |
logging.error('Error during add issue')
|
| 136 |
+ self.alert_sender( |
|
| 137 |
+ msg, |
|
| 138 |
+ u"[Mantis] Error occured adding your issue '%s'" % msg.subject(), |
|
| 139 |
+ u"An error occured adding your issue :\n\nSubject : %s\n--\n%s" % (issue_id,msg.subject(),msg.get_text()) |
|
| 140 |
+ ) |
|
| 141 |
+ |
|
| 136 | 142 |
|
| 137 | 143 |
def add_note_to_issue_from_msg(self,msg): |
| 138 | 144 |
if self.ws is None: |
| 139 | 145 |