add methode to read all mails

This commit is contained in:
2023-11-09 11:23:59 +01:00
parent 506a3c0e90
commit 387751b7be
2 changed files with 6 additions and 2 deletions
+4
View File
@@ -0,0 +1,4 @@
from src.mail.mail_reader_all_contacts import read_all_mails
if __name__ == '__main__':
read_all_mails()
+2 -2
View File
@@ -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()