Skip to content

Commit 03e06f2

Browse files
committed
📜🤖 Added by blurb_it.
1 parent 0096298 commit 03e06f2

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
Found the response of the `EXISTS` command is padded by some IMAP servers/translators including `davmail`, it seems to be when the number of emails is around or over 500.
2+
3+
Acceptable response:
4+
```
5+
58:24.54 > PJJD3 EXAMINE INBOX
6+
58:24.77 < * 486 EXISTS
7+
58:24.78 matched r'\* (?P<data>\d+) (?P<type>[A-Z-]+)( (?P<data2>.*))?' => ('486', 'EXISTS', None, None)
8+
58:24.78 untagged_responses[EXISTS] 0 += ["486"]
9+
```
10+
Failed response:
11+
```
12+
57:50.86 > KPFE3 EXAMINE INBOX
13+
57:51.10 < * 953 EXISTS
14+
57:51.10 last 0 IMAP4 interactions:
15+
57:51.10 > KPFE4 LOGOUT
16+
```
17+
Notice the additional whitespace after the *
18+
19+
The `imaplib` default regex should be updated to account for one or two whitespaces

0 commit comments

Comments
 (0)