Python
1
Вклад в тег
account = pymailtm.MailTm()
def get_one_message():
while True:
print("\nWaiting for new messages...")
start = len(account.get_messages())
while len(account.get_messages()) == start:
sleep(1)
print("New message arrived!")
last_message = account.get_messages()[0].text
break
print(last_message)