fix: [Mails] remove print + test

This commit is contained in:
Terrtia 2020-05-11 11:15:12 +02:00
parent 0a525f369e
commit 4d318643ce
No known key found for this signature in database
GPG key ID: 1E1B1F50D84613D0

View file

@ -137,8 +137,7 @@ if __name__ == "__main__":
email_regex = "[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,6}" email_regex = "[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,6}"
while True: while True:
#message = p.get_from_set() message = p.get_from_set()
message = 'archive/pastebin.com_pro/2020/02/07/Fnz1wUim.gz 3'
if message is not None: if message is not None:
item_id, score = message.split() item_id, score = message.split()
@ -174,11 +173,7 @@ if __name__ == "__main__":
## TODO: add MAIL trackers ## TODO: add MAIL trackers
print(all_emails)
print()
valid_mx = check_mx_record(set_mxdomains, dns_server) valid_mx = check_mx_record(set_mxdomains, dns_server)
print(valid_mx)
num_valid_email = 0 num_valid_email = 0
for domain_mx in valid_mx: for domain_mx in valid_mx:
@ -210,10 +205,5 @@ if __name__ == "__main__":
else: else:
publisher.info(msg) publisher.info(msg)
time.sleep(30)
else: else:
time.sleep(10) time.sleep(10)