4. Update the *statefile* with the new UIDNEXT value (bytes 5-8).
- 5. Truncate the *statefile* down to 8 bytes (so that it contains only
- two 32-bits integers, respectively the *mailbox*'s current
- `UIDVALIDITY` and `UIDNEXT` values).
+ 5. Truncate the *statefile* down to 8 bytes (so that it contains only
+ two 32-bits integers, respectively the *mailbox*'s current
+ `UIDVALIDITY` and `UIDNEXT` values).
6. If `--idle` was set, issue an `IDLE` command; stop idling and go
- back to step 1. whenever a new message is received.
+ back to step 1. when a new message is received (or when the `IDLE`
+ timeout expires).
Standards
=========
* M. Leech, M. Ganis, Y. Lee, R. Kuris, D. Koblas and L. Jones,
_SOCKS Protocol Version 5_,
- [RFC 1928], March 1996
+ [RFC 1928], March 1996.
* M. Leech, _Username/Password Authentication for SOCKS V5_,
- [RFC 1929], March 1996
+ [RFC 1929], March 1996.
* J. Myers, _Local Mail Transfer Protocol_,
- [RFC 2033], October 1996
+ [RFC 2033], October 1996.
* J. Myers, _IMAP4 non-synchronizing literals_,
- [RFC 2088], January 1997
+ [RFC 2088], January 1997.
* B. Leiba, _IMAP4 IDLE command_,
- [RFC 2177], June 1997
+ [RFC 2177], June 1997.
* C. Newman, _Using TLS with IMAP, POP3 and ACAP_,
- [RFC 2595], June 1999
+ [RFC 2595], June 1999.
* N. Freed, _SMTP Service Extension for Command Pipelining_,
- [RFC 2920], September 2000
+ [RFC 2920], September 2000.
* M. Crispin, _Internet Message Access Protocol - Version 4rev1_,
- [RFC 3501], March 2003
+ [RFC 3501], March 2003.
* M. Crispin,
_Internet Message Access Protocol (IMAP) - UIDPLUS extension_,
- [RFC 4315], December 2005
+ [RFC 4315], December 2005.
* A. Gulbrandsen, _The IMAP COMPRESS Extension_,
- [RFC 4978], August 2007
+ [RFC 4978], August 2007.
* R. Siemborski and A. Gulbrandsen, _IMAP Extension for Simple
Authentication and Security Layer (SASL) Initial Client Response_,
- [RFC 4959], September 2007
+ [RFC 4959], September 2007.
* J. Klensin, _Simple Mail Transfer Protocol_,
- [RFC 5321], October 2008
+ [RFC 5321], October 2008.
[RFC 4315]: https://tools.ietf.org/html/rfc4315
[RFC 2177]: https://tools.ietf.org/html/rfc2177