Commit 746087b
Fix FETCH command with ALL, FAST and FULL macro as fetch items
When using one of the macros as fetch item arguments, the IMAP command
written to the socket would wrap the macro in parentheses, which is not
valid.
To address this we check whether there is only one item in the fetch
list and if it matches on of the macros we make sure it's serialized in
way that does not wrap it in parentheses.1 parent cc99410 commit 746087b
1 file changed
+15
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
21 | 28 | | |
22 | | - | |
23 | | - | |
24 | | - | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
25 | 33 | | |
26 | 34 | | |
27 | 35 | | |
| |||
0 commit comments