From 387751b7be82314cf251b290cb0390a972b885e2 Mon Sep 17 00:00:00 2001 From: PAN Lei Date: Thu, 9 Nov 2023 11:23:59 +0100 Subject: [PATCH] add methode to read all mails --- all_mail_manager.py | 4 ++++ src/mail/mail_reader_all_contacts.py | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) create mode 100644 all_mail_manager.py diff --git a/all_mail_manager.py b/all_mail_manager.py new file mode 100644 index 0000000..13edcc6 --- /dev/null +++ b/all_mail_manager.py @@ -0,0 +1,4 @@ +from src.mail.mail_reader_all_contacts import read_all_mails + +if __name__ == '__main__': + read_all_mails() diff --git a/src/mail/mail_reader_all_contacts.py b/src/mail/mail_reader_all_contacts.py index 7a0ac33..128754a 100755 --- a/src/mail/mail_reader_all_contacts.py +++ b/src/mail/mail_reader_all_contacts.py @@ -255,7 +255,7 @@ def need_to_check_email(mail: str, successful_items) -> bool: # return False -def read_mails(): +def read_all_mails(): # check time before start checking emails if is_time_between(time(7, 30), time(19, 30)): # get email address @@ -305,4 +305,4 @@ def read_mails(): # check whether the url has already been clicked if __name__ == '__main__': init_logger() - read_mails() + read_all_mails()