[WO-745] Adapt changes in imap-client v0.8.0
Merge pull request #210 from whiteout-io/dev/WO-745

[WO-745] Adapt changes in imap-client v0.8.0