add IMAP DEBUGGING activable via env variable
add IMAP DEBUGGING activable via env variable
implement encoding support