try to correct the probleme of multi emails
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user