Add Cloudflare catch-all mail worker

This commit is contained in:
2026-07-22 13:40:09 +08:00
parent 0d98ffaf89
commit 5e993b5961
10 changed files with 1979 additions and 1 deletions
@@ -104,6 +104,13 @@ class MinimalBoundaryRegressionTests(unittest.TestCase):
code = mail_service.yyds_get_oai_code("token", "user@example.com", timeout=1, poll_interval=0)
self.assertEqual(code, "ABC-123")
def test_confirmation_subject_code_beats_lowercase_css_token(self):
code = mail_service.extract_verification_code(
".mj-column-per-100 { width: 100%; }",
"SpaceXAI confirmation code: XOE-G02",
)
self.assertEqual(code, "XOE-G02")
def test_pending_recovery_acquires_pending_and_target_locks_in_fixed_order(self):
acquired = []