mirror of
https://gitea.mueller.network/extern/django-helpdesk.git
synced 2024-11-28 19:03:14 +01:00
Merge branch 'unstable' of git@github.com:martin-marty/django-helpdesk.git into 1039-complexity-reduction
This commit is contained in:
commit
fe28c2f540
@ -63,6 +63,7 @@ errors with trying to create User settings.
|
|||||||
'pinax.teams', # Team support
|
'pinax.teams', # Team support
|
||||||
'reversion', # Required by pinax-teams
|
'reversion', # Required by pinax-teams
|
||||||
'rest_framework', # required for the API
|
'rest_framework', # required for the API
|
||||||
|
'django_cleanup.apps.CleanupConfig', # Remove this if you do NOT want to delete files on the file system when the associated record is deleted in the database
|
||||||
'helpdesk', # This is us!
|
'helpdesk', # This is us!
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -529,19 +529,6 @@ def object_from_message(message, queue, logger):
|
|||||||
sender_email = email.utils.getaddresses(
|
sender_email = email.utils.getaddresses(
|
||||||
['\"' + sender.replace('<', '\" <')])[0][1]
|
['\"' + sender.replace('<', '\" <')])[0][1]
|
||||||
|
|
||||||
cc = message.get_all('cc', None)
|
|
||||||
if cc:
|
|
||||||
# first, fixup the encoding if necessary
|
|
||||||
cc = [decode_mail_headers(decodeUnknown(
|
|
||||||
message.get_charset(), x)) for x in cc]
|
|
||||||
# get_all checks if multiple CC headers, but individual emails may be
|
|
||||||
# comma separated too
|
|
||||||
tempcc = []
|
|
||||||
for hdr in cc:
|
|
||||||
tempcc.extend(hdr.split(','))
|
|
||||||
# use a set to ensure no duplicates
|
|
||||||
cc = set([x.strip() for x in tempcc])
|
|
||||||
|
|
||||||
for ignore in IgnoreEmail.objects.filter(Q(queues=queue) | Q(queues__isnull=True)):
|
for ignore in IgnoreEmail.objects.filter(Q(queues=queue) | Q(queues__isnull=True)):
|
||||||
if ignore.test(sender_email):
|
if ignore.test(sender_email):
|
||||||
if ignore.keep_in_mailbox:
|
if ignore.keep_in_mailbox:
|
||||||
|
@ -12,3 +12,4 @@ six
|
|||||||
pinax_teams
|
pinax_teams
|
||||||
djangorestframework
|
djangorestframework
|
||||||
django-model-utils
|
django-model-utils
|
||||||
|
django-cleanup
|
||||||
|
Loading…
Reference in New Issue
Block a user