Print IMAP session buffer as a string literal

Fix ci_write message logging, print the whole message instead of the first
40 characters.
Merge pull request #9 from santa01/vsnprintf_format

Print IMAP session buffer as a string literal