add methode to read all mails
This commit is contained in:
@@ -0,0 +1,4 @@
|
|||||||
|
from src.mail.mail_reader_all_contacts import read_all_mails
|
||||||
|
|
||||||
|
if __name__ == '__main__':
|
||||||
|
read_all_mails()
|
||||||
@@ -255,7 +255,7 @@ def need_to_check_email(mail: str, successful_items) -> bool:
|
|||||||
# return False
|
# return False
|
||||||
|
|
||||||
|
|
||||||
def read_mails():
|
def read_all_mails():
|
||||||
# check time before start checking emails
|
# check time before start checking emails
|
||||||
if is_time_between(time(7, 30), time(19, 30)):
|
if is_time_between(time(7, 30), time(19, 30)):
|
||||||
# get email address
|
# get email address
|
||||||
@@ -305,4 +305,4 @@ def read_mails():
|
|||||||
# check whether the url has already been clicked
|
# check whether the url has already been clicked
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
init_logger()
|
init_logger()
|
||||||
read_mails()
|
read_all_mails()
|
||||||
|
|||||||
Reference in New Issue
Block a user