Fix script not exiting when not scheduling a new check
Decode correctly mailbox names
Improve exception handling / reconnection

Now it logs in and out on every check.

Included also is some pretty useless code to pause checking for e-mails
when the system enters suspended state.