def __init__(self, username, password,\
                 server='imap.gmail.com', port=993):
        """
        It returns -1 if there is no connection otherwise it returns
        the number of unread mails.
        """