Skip to content

Commit 760b40a

Browse files
Update 2019-06-26-06-12-08.bpo-37407.Qc1pW1.rst
1 parent 03e06f2 commit 760b40a

File tree

1 file changed

+2
-19
lines changed

1 file changed

+2
-19
lines changed
Lines changed: 2 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,2 @@
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
1+
Allow one or two whitespaces after * in IMAP response.
2+
Patch by Edward Smith.

0 commit comments

Comments
 (0)