docs: def open_connection(self, verbose=False):
          """ Initializes a new IMAP4_SSL connection to an email server."""
  
          # Connect to server
          hostname = self.configs.get('IMAP', 'hostname')
          if verbose:
              print('Connecting to ' + hostname)
          connection = imaplib.IMAP4_SSL(hostname)
  
          # Authenticate
          username = self.configs.get('IMAP', 'username')
          password = self.configs.get('IMAP', 'password')
          if verbose:
              print('Logging in as', username)
          connection.login(username, password)
  
          return connection