Fix regarding support ticket to support ticket system email chaining issue
This commit is contained in:
parent
91e40c6d9b
commit
f2fb3a4abf
1 changed files with 4 additions and 2 deletions
|
|
@ -66,9 +66,11 @@ class IncomingMail:
|
|||
Extracts thread id of the message between first []
|
||||
from the subject
|
||||
"""
|
||||
import re
|
||||
subject = self.mail.get('Subject', '')
|
||||
if '[' in subject and ']' in subject:
|
||||
return subject.split('[')[1].split(']')[0]
|
||||
|
||||
return re.findall('(?<=\[)\w+', subject)
|
||||
|
||||
|
||||
def process_part(self, part):
|
||||
"""
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue