Commit a88e3fd1e8a0e1d94af0344ce6988a9d95322d94
Committed by
Sergio Oliveira
1 parent
0763e223
Exists in
master
and in
39 other branches
Fix verification of import emails
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
colab/super_archives/management/commands/message.py
@@ -79,7 +79,7 @@ class Message(mailbox.mboxMessage): | @@ -79,7 +79,7 @@ class Message(mailbox.mboxMessage): | ||
79 | return body.strip() | 79 | return body.strip() |
80 | 80 | ||
81 | def get_received_datetime(self): | 81 | def get_received_datetime(self): |
82 | - if self not in ('Received'): | 82 | + if ('Received') not in self: |
83 | return None | 83 | return None |
84 | # The time received should always be the last element | 84 | # The time received should always be the last element |
85 | # in the `Received` attribute from the message headers | 85 | # in the `Received` attribute from the message headers |