fix: [mail module] fix typo
Some checks are pending
CI / ail_test (3.9) (push) Waiting to run
CI / ail_test (3.10) (push) Waiting to run
CI / ail_test (3.7) (push) Waiting to run
CI / ail_test (3.8) (push) Waiting to run

This commit is contained in:
terrtia 2024-10-01 15:21:22 +02:00
parent 9f45202658
commit a7a6c91920
No known key found for this signature in database
GPG key ID: 1E1B1F50D84613D0

View file

@ -135,10 +135,10 @@ class Mail(AbstractModule):
# # TODO: sanitize mails
def compute(self, message):
score = message
obj = self.get_obj()
item = self.get_obj()
item_date = item.get_date()
mails = self.regex_findall(self.email_regex, obj.id, obj.get_content())
mails = self.regex_findall(self.email_regex, item.id, item.get_content())
mxdomains_email = {}
for mail in mails:
mxdomain = mail.rsplit('@', 1)[1].lower()