Move selenium start up into defun
Improve mail checking function
Add macro to open inbox
Fix eval-after-load ot wait for the right mode