Commit a88e3fd1e8a0e1d94af0344ce6988a9d95322d94

Authored by Gust
Committed by Sergio Oliveira
1 parent 0763e223

Fix verification of import emails

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