ignore attach, email validation fixes in support_ticket
This commit is contained in:
parent
056d1723e7
commit
f4a6e17830
@ -109,6 +109,11 @@ class SupportMailbox(POP3Mailbox):
|
|||||||
d.naming_series = opts and opts.split("\n")[0] or 'SUP'
|
d.naming_series = opts and opts.split("\n")[0] or 'SUP'
|
||||||
try:
|
try:
|
||||||
d.save(1)
|
d.save(1)
|
||||||
|
try:
|
||||||
|
# extract attachments
|
||||||
|
self.save_attachments(d, mail.attachments)
|
||||||
|
except Exception, e:
|
||||||
|
self.description += "\n\n[Did not pull attachment]"
|
||||||
except:
|
except:
|
||||||
d.description = 'Unable to extract message'
|
d.description = 'Unable to extract message'
|
||||||
d.save(1)
|
d.save(1)
|
||||||
@ -118,8 +123,6 @@ class SupportMailbox(POP3Mailbox):
|
|||||||
if "mailer-daemon" not in d.raised_by.lower():
|
if "mailer-daemon" not in d.raised_by.lower():
|
||||||
self.send_auto_reply(d)
|
self.send_auto_reply(d)
|
||||||
|
|
||||||
# extract attachments
|
|
||||||
self.save_attachments(d, mail.attachments)
|
|
||||||
|
|
||||||
def save_attachments(self, doc, attachment_list=[]):
|
def save_attachments(self, doc, attachment_list=[]):
|
||||||
"""
|
"""
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user