mirror of https://github.com/CIRCL/AIL-framework
fix: [Mails] change module output
parent
4d318643ce
commit
0dfddd318b
|
@ -193,9 +193,9 @@ if __name__ == "__main__":
|
||||||
server_statistics.hincrby('mail_by_tld:{}'.format(item_date), tld, 1)
|
server_statistics.hincrby('mail_by_tld:{}'.format(item_date), tld, 1)
|
||||||
|
|
||||||
msg = 'Mails;{};{};{};Checked {} e-mail(s);{}'.format(Item.get_source(item_id), item_date, Item.get_item_basename(item_id), num_valid_email, item_id)
|
msg = 'Mails;{};{};{};Checked {} e-mail(s);{}'.format(Item.get_source(item_id), item_date, Item.get_item_basename(item_id), num_valid_email, item_id)
|
||||||
print(msg)
|
|
||||||
|
|
||||||
if num_valid_email > mail_threshold:
|
if num_valid_email > mail_threshold:
|
||||||
|
print('{} Checked {} e-mail(s)'.format(item_id, num_valid_email))
|
||||||
publisher.warning(msg)
|
publisher.warning(msg)
|
||||||
#Send to duplicate
|
#Send to duplicate
|
||||||
p.populate_set_out(item_id, 'Duplicate')
|
p.populate_set_out(item_id, 'Duplicate')
|
||||||
|
|
Loading…
Reference in New Issue