Added imaps support.
Fixed problem with some GoogleMail folders.

- folders which cannot be opened are skipped