forked from extern/django-helpdesk
Changed regex for email subjects to use queue slug to tell internal ticket id from external ones.
This commit is contained in:
parent
127d57e386
commit
306d8bf4d3
@ -172,7 +172,7 @@ def ticket_from_message(message, queue, quiet):
|
||||
return False
|
||||
return True
|
||||
|
||||
matchobj = re.match(r"^\[(?P<queue>[-A-Za-z0-9]+)-(?P<id>\d+)\]", subject)
|
||||
matchobj = re.match(r".*\["+queue.slug+"-(?P<id>\d+)\]", subject)
|
||||
if matchobj:
|
||||
# This is a reply or forward.
|
||||
ticket = matchobj.group('id')
|
||||
|
Loading…
Reference in New Issue
Block a user