try to correct the probleme of multi emails

This commit is contained in:
2023-04-19 20:13:53 +02:00
parent 7bbdf6ca9c
commit 83b6c91f80
4 changed files with 44 additions and 10 deletions
+5 -3
View File
@@ -175,13 +175,15 @@ def read_mails_and_find_confirmation_contacts():
for mail in mails_messages:
message_body = mail.body
for item in successful_items:
if item.id in message_body and item.id != "welcome":
if item.id in message_body and item.id != "welcome" and len(item.id) > 0:
item.message = message_body
accepted_appointment_list.append(item)
elif "10:30" in message_body and (item.email == mail.mail_address or item.email in message_body):
elif "10:30" in message_body and (
item.email == mail.mail_address or item.email in message_body) and len(item.id) > 0:
item.message = message_body
accepted_appointment_list.append(item)
elif "11:30" in message_body and (item.email == mail.mail_address or item.email in message_body):
elif "11:30" in message_body and (
item.email == mail.mail_address or item.email in message_body) and len(item.id) > 0:
item.message = message_body
accepted_appointment_list.append(item)
print(mail.mail_address)