diff --git a/src/mail/mail_reader_all_contacts.py b/src/mail/mail_reader_all_contacts.py index 128754a..f202e6a 100755 --- a/src/mail/mail_reader_all_contacts.py +++ b/src/mail/mail_reader_all_contacts.py @@ -225,11 +225,11 @@ def need_to_valid_url(url: str, successful_items) -> bool: def need_to_check_email(mail: str, successful_items) -> bool: print("successful_items size is " + str(len(successful_items))) - if mail in REDIRECTION_MAILS: - return True + # if mail in REDIRECTION_MAILS: + # return True # return True # get all the item with the current mail - filtered_items = list(filter(lambda item: item.email == mail, successful_items)) + filtered_items = list(filter(lambda item: item.mail == mail, successful_items)) # has validated value if len(filtered_items) > 0: validated_items = list(filter( @@ -294,9 +294,9 @@ def read_all_mails(): # else: url = match.group(0) if need_to_valid_url(url, successful_items): - MONGO_STORE_MANAGER.save_links_to_validate(url, mail.to_address) - # url_validator = LinkValidator(url) print("need to validate url: " + url) + MONGO_STORE_MANAGER.save_links_to_validate(url, mail.to_address,_all_contact_list=contact_to_book_list) + # url_validator = LinkValidator(url) # executor.submit(url_validator.start_page, params.get_proxy(ProxyType.OXYLABS), False) else: print("do not need to click url --> {}".format(mail.mail_address))