mirror of
https://gitea.mueller.network/extern/django-helpdesk.git
synced 2025-01-30 09:48:45 +01:00
Merge pull request #974 from passiv/master
fix: strip extraneous whitespace characters that are returned in the Message-ID and In-Reply-To fields from some email providers
This commit is contained in:
commit
3216ff0c55
@ -362,6 +362,12 @@ def create_object_from_email_message(message, ticket_id, payload, files, logger)
|
|||||||
message_id = message.get('Message-Id')
|
message_id = message.get('Message-Id')
|
||||||
in_reply_to = message.get('In-Reply-To')
|
in_reply_to = message.get('In-Reply-To')
|
||||||
|
|
||||||
|
if message_id:
|
||||||
|
message_id = message_id.strip()
|
||||||
|
|
||||||
|
if in_reply_to:
|
||||||
|
in_reply_to = in_reply_to.strip()
|
||||||
|
|
||||||
if in_reply_to is not None:
|
if in_reply_to is not None:
|
||||||
try:
|
try:
|
||||||
queryset = FollowUp.objects.filter(message_id=in_reply_to).order_by('-date')
|
queryset = FollowUp.objects.filter(message_id=in_reply_to).order_by('-date')
|
||||||
|
Loading…
Reference in New Issue
Block a user