send confirmation info by signal

This commit is contained in:
2023-10-25 18:35:27 +02:00
parent 2ff4e1fd8e
commit cf7155f9fb
5 changed files with 57 additions and 13 deletions
+4 -9
View File
@@ -13,12 +13,6 @@ class MailAddressValidator():
self.login = login
self.password = password
@staticmethod
def show_folders(imap):
for i in imap.list()[1]:
l = i.decode().split(' "/" ')
print(l[0] + " = " + l[1])
def is_valid_email_address(self) -> bool:
# authenticate
imap = create_imap(self.login)
@@ -66,9 +60,10 @@ def find_and_update_invalid_emails(mail_list):
if __name__ == '__main__':
# remove_invalid_email()
mail_list = MONGO_STORE_MANAGER.get_destination_emails()
remove_invalid_email()
# mail_list = MONGO_STORE_MANAGER.get_destination_emails()
# excel_reader = ExcelHelper()
# mail_list = excel_reader.read_mails_and_pwd(file_name="/Users/lpan/Downloads/hotmail_list.xlsx")
# print(email_list)
find_and_update_invalid_emails(mail_list)
# find_and_update_invalid_emails(mail_list)