Changed regex for email subjects to use queue slug to tell internal ticket id from external ones.

This commit is contained in:
root 2013-02-27 16:14:16 +01:00
parent 127d57e386
commit 306d8bf4d3

View File

@ -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')