kshitijk4poor
66f1668850
refactor(email): fold #92979 review findings into the IMAP ID gate
...
Two shape fixes from the review of #92979 , no behavior change:
- Read imap.capabilities directly instead of the getattr(...) or ()
fallback — a real imaplib.IMAP4 always sets the attribute in
_connect() (raising if the server sends no CAPABILITY), so the
default branch only existed for a MagicMock(spec=["xatom"]) that no
production path produces. Drop the test that pinned it.
- Trim tests to the invariant bar: the four mock tests duplicated what
test_email_imap_id_protocol.py proves on the wire (real imaplib, real
socket, command order), and the phase parametrize (startup vs poll)
exercised the same single _send_imap_id call site twice. Keep the
three id_mode cases through the poll path.
42 tests pass; mutation check: guard removed -> the absent-ID case
fails with the #39856 SELECT error, restored -> green.
2026-09-06 21:38:34 +05:30
..
2026-09-03 13:49:57 -07:00
2026-09-03 15:50:55 -07:00
2026-09-06 07:17:48 -07:00
2026-09-06 07:19:21 -07:00
2026-09-03 19:33:28 -07:00
2026-09-03 13:22:51 -07:00
2026-09-06 20:47:44 +05:30
2026-09-03 14:21:52 -07:00
2026-09-03 17:28:02 -07:00
2026-09-06 09:03:59 -07:00
2026-09-03 23:55:56 -07:00
2026-09-06 21:38:34 +05:30
2026-09-06 20:47:52 +05:30
2026-09-06 14:47:11 +05:30
2026-09-03 15:07:39 -07:00
2026-09-04 00:53:42 -07:00
2026-09-03 13:38:36 -07:00
2026-09-03 13:29:35 -07:00
2026-09-06 05:33:25 -07:00
2026-09-06 02:42:59 -07:00
2026-09-03 13:38:36 -07:00
2026-09-06 21:37:47 +05:30
2026-09-02 10:33:43 -07:00
2026-09-05 14:01:34 -07:00
2026-09-03 16:35:01 -07:00
2026-09-06 07:17:48 -07:00
2026-09-06 20:26:11 +05:30
2026-09-06 20:50:02 +05:30
2026-09-04 07:17:00 -07:00
2026-09-03 13:28:22 -07:00
2026-09-02 18:41:26 -07:00
2026-09-02 19:20:44 -07:00
2026-09-03 14:21:52 -07:00
2026-09-02 13:29:46 -07:00
2026-09-03 13:29:55 -07:00
2026-09-04 00:15:16 -07:00
2026-09-03 13:46:50 -07:00
2026-09-03 13:28:22 -07:00
2026-09-02 19:53:29 -07:00
2026-09-06 07:19:21 -07:00
2026-09-05 02:31:06 -07:00
2026-09-02 06:19:03 -07:00
2026-09-03 13:12:50 -07:00
2026-09-02 15:03:42 -07:00
2026-09-03 13:46:50 -07:00
2026-09-03 05:03:04 +05:30
2026-09-02 15:03:42 -07:00
2026-09-03 13:46:50 -07:00
2026-09-03 02:06:56 +05:30
2026-09-02 15:03:42 -07:00
2026-09-03 16:35:01 -07:00
2026-09-03 13:46:50 -07:00
2026-09-03 13:46:50 -07:00
2026-09-03 13:16:47 -07:00
2026-09-02 17:26:25 -04:00
2026-07-29 13:10:23 -07:00
2026-09-03 13:48:14 -07:00
2026-09-03 13:46:50 -07:00
2026-09-03 15:07:39 -07:00
2026-07-29 19:53:17 -07:00
2026-09-02 17:07:24 -07:00
2026-09-03 13:46:50 -07:00
2026-09-03 13:48:49 -07:00
2026-09-05 12:21:21 +05:30
2026-09-03 13:28:22 -07:00
2026-09-03 17:45:53 -07:00
2026-09-04 04:56:11 -07:00
2026-09-04 01:28:31 -07:00
2026-09-04 20:24:24 -04:00
2026-09-04 20:24:24 -04:00
2026-09-03 19:33:28 -07:00
2026-07-29 13:10:23 -07:00
2026-09-03 14:21:52 -07:00
2026-09-03 13:46:50 -07:00
2026-09-03 14:21:52 -07:00
2026-09-03 13:46:50 -07:00
2026-09-02 07:26:52 -07:00
2026-09-03 13:46:50 -07:00
2026-09-03 13:46:50 -07:00
2026-09-03 13:46:50 -07:00
2026-09-03 13:46:50 -07:00
2026-09-03 13:46:50 -07:00
2026-09-03 13:46:50 -07:00
2026-09-03 13:46:50 -07:00
2026-09-03 13:46:50 -07:00
2026-09-03 13:10:52 -07:00
2026-09-03 16:35:01 -07:00
2026-09-03 13:46:50 -07:00
2026-09-05 12:21:21 +05:30
2026-09-05 17:00:18 -07:00
2026-09-06 14:14:29 +05:30
2026-09-03 14:21:52 -07:00
2026-09-03 14:21:52 -07:00
2026-09-03 14:18:25 -07:00
2026-09-03 13:12:50 -07:00
2026-09-03 13:12:50 -07:00
2026-09-03 13:12:50 -07:00