Private
Public Access
1
0

processing emails from alternate address

This commit is contained in:
Sander Roosendaal
2020-10-07 19:29:17 +02:00
parent b5b2969ef8
commit 3107182310
4 changed files with 58 additions and 16 deletions

View File

@@ -235,10 +235,13 @@ class Command(BaseCommand):
rowers = [
r for r in Rower.objects.all() if r.user.email.lower() == from_address
]
rowers2 = [
r for r in Rower.objects.all() if from_address in r.emailalternatives
]
rowers = rowers+rowers2
try:
rowers2 = [
r for r in Rower.objects.all() if from_address in r.emailalternatives
]
rowers = rowers+rowers2
except TypeError:
pass
except IOError:
rowers = []
except Message.DoesNotExist: