Unable to setup IMAP gmail account

For yahoo, see the following post :