mirror of https://github.com/CIRCL/AIL-framework
fix: [mail module] fix typo
parent
9f45202658
commit
a7a6c91920
|
@ -135,10 +135,10 @@ class Mail(AbstractModule):
|
||||||
# # TODO: sanitize mails
|
# # TODO: sanitize mails
|
||||||
def compute(self, message):
|
def compute(self, message):
|
||||||
score = message
|
score = message
|
||||||
obj = self.get_obj()
|
item = self.get_obj()
|
||||||
item_date = item.get_date()
|
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 = {}
|
mxdomains_email = {}
|
||||||
for mail in mails:
|
for mail in mails:
|
||||||
mxdomain = mail.rsplit('@', 1)[1].lower()
|
mxdomain = mail.rsplit('@', 1)[1].lower()
|
||||||
|
|
Loading…
Reference in New Issue