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