1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
//! IMAP4 IDLE command
//!
//! This extension enables the [CommandBody::Idle](crate::types::command::CommandBody#variant.Idle) variant.
//! No additional types are used.
// Additional changes:
//
// command_auth =/ idle
use CRLF;
use CommandBody;
use ;
/// `idle = "IDLE" CRLF "DONE"` (edited)
///
/// ```text
/// idle = "IDLE" CRLF "DONE"
/// ^^^^^^^^^^^
/// |
/// This is parsed here.
/// CRLF is consumed in upper command parser.
/// ```
///
/// Valid only in Authenticated or Selected state
/// `idle = "IDLE" CRLF "DONE"` (edited)
///
/// ```text
/// idle = "IDLE" CRLF "DONE" CRLF
/// ^^^^^^^^^^^
/// |
/// This is parsed here.
/// CRLF is additionally consumed in this parser.
/// ```
///
/// Valid only in Authenticated or Selected state
///
/// Note: This parser must be executed *instead* of the command parser
/// when the server is in the IDLE state.
///
// TODO(41): just interpret as command?