GMail IMAP secretly supports LITERAL+ except for APPEND

This patch optimizes commands such as SEARCH that can
benefit from the use of LITERAL+ for generally smallish
strings.