Fixed IMAP code to take advantage of LITERAL+ in APPEND