temp_mail.py#L126
In the emails for registration and login verification, a sequence of six consecutive digits may randomly appear in the source field, which causes failure in fetching the email verification code.
It is recommended to use the following configuration:
OTP_REGISTER_PATTERN = {"regex": r"Your ChatGPT code is (?<!\d)(\d{6})(?!\d)", "replace": "Your ChatGPT code is "}
OTP_LOGIN_PATTERN = {"regex": r"Enter this temporary verification code to continue: (?<!\d)(\d{6})(?!\d)", "replace": "Enter this temporary verification code to continue: "}
First, locate and match the correct verification code block, then remove the extraneous content. This will allow you to successfully extract the correct verification code.