Example #1
0
 def setupClient(self):
     """ Login to email server (IMAP) """
     email_id = str(self.settings.value('EmailId', '').toString())
     if email_id == '':
         QMessageBox.warning(self, 'No Account Selected !',
                                 'Please Click on Menu and Select an account to login')
         return
     kr = Keyring()
     passwd = kr.getPassword(email_id)
     if not passwd :
         QMessageBox.critical(self, 'Not Found !', 'Password not found for the email %s'%email_id)
         return
     print 'login requested'
     self.loginRequested.emit(email_id, passwd)