ignore attach, email validation fixes in support_ticket
diff --git a/support/doctype/support_ticket/__init__.py b/support/doctype/support_ticket/__init__.py
index 90dc1e3..da1755f 100644
--- a/support/doctype/support_ticket/__init__.py
+++ b/support/doctype/support_ticket/__init__.py
@@ -109,6 +109,11 @@
d.naming_series = opts and opts.split("\n")[0] or 'SUP'
try:
d.save(1)
+ try:
+ # extract attachments
+ self.save_attachments(d, mail.attachments)
+ except Exception, e:
+ self.description += "\n\n[Did not pull attachment]"
except:
d.description = 'Unable to extract message'
d.save(1)
@@ -118,8 +123,6 @@
if "mailer-daemon" not in d.raised_by.lower():
self.send_auto_reply(d)
- # extract attachments
- self.save_attachments(d, mail.attachments)
def save_attachments(self, doc, attachment_list=[]):
"""