Print IMAP session buffer as a string literal

Fix ci_write message logging, print the whole message instead of the first
40 characters.