Fixing Email Verification Token Retrieval Issue

Changing the value msg_from (where the verification email is sent from) is compared to. Instead of "info@twitter.com", it should check for "info@x.com" as the verification code seems to be sent from this email now.

Fixes the "Error in LoginAcid: Email code timeout" error in my case.
Этот коммит содержится в:
aatakansalar 2023-09-13 04:08:03 +03:00
родитель 745bc59b66
Коммит 4f5d3d6f4f

Просмотреть файл

@ -55,7 +55,7 @@ def _wait_email_code(imap: imaplib.IMAP4_SSL, count: int, min_t: datetime | None
if min_t is not None and msg_time < min_t:
return None
if "info@twitter.com" in msg_from and "confirmation code is" in msg_subj:
if "info@x.com" in msg_from and "confirmation code is" in msg_subj:
# eg. Your Twitter confirmation code is XXX
return msg_subj.split(" ")[-1].strip()