mirror of
https://github.com/django-helpdesk/django-helpdesk.git
synced 2025-06-20 09:37:48 +02:00
Issue #128: If queue name has a dash in it, email imported failed. Thanks
to enix.org for the patch.
This commit is contained in:
parent
f990da3a56
commit
f3d0bed5a6
@ -37,3 +37,5 @@ Andreas Kotowicz.
|
|||||||
2010-01-20 r149 Issue #126 Reports didn't work with transalations.
|
2010-01-20 r149 Issue #126 Reports didn't work with transalations.
|
||||||
|
|
||||||
2010-01-20 r150 Issue #127 Add german transalation, courtesy of openinformation.org
|
2010-01-20 r150 Issue #127 Add german transalation, courtesy of openinformation.org
|
||||||
|
|
||||||
|
2009-01-20 r151 Issue #128 If queue name has a dash in it, email imported failed. Thanks to enix.org for the patch.
|
||||||
|
@ -164,10 +164,10 @@ def ticket_from_message(message, queue, quiet):
|
|||||||
return False
|
return False
|
||||||
return True
|
return True
|
||||||
|
|
||||||
regex = re.compile("^\[[A-Za-z0-9]+-\d+\]")
|
matchobj = re.match(r"^\[(?P<queue>[-A-Za-z0-9]+)-(?P<id>\d+)\]", subject)
|
||||||
if regex.match(subject):
|
if matchobj:
|
||||||
# This is a reply or forward.
|
# This is a reply or forward.
|
||||||
ticket = re.match(r"^\[(?P<queue>[A-Za-z0-9]+)-(?P<id>\d+)\]", subject).group('id')
|
ticket = matchobj.group('id')
|
||||||
else:
|
else:
|
||||||
ticket = None
|
ticket = None
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user