Merged 695f3af0e6882efe80ba0542c59d67fc77a229b8 to upstream: implement of IMAP COMPRESS (RFC 4978). Thanks to Ian Ragsdale.