<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 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