def get_emails(M, voice):
    """
    Selects the mailbox, then pulls all emails from the target address from that mailbox.
    The IMAP object and the pulled data are both returned.
    The "[Gmail]/All Mail" mailbox gives all mail on the server, but there are other options for Gmail one can look up.
    :param M: IMAP object for interacting with IMAP server
    :param voice: Emails we're pulling were sent from this address
    :return M: IMAP object for interacting with IMAP server, now in a 'selected' state
    :return data: Data from IMAP server describing which emails were sent from voice
    """
    M.select('"[Gmail]/All Mail"', readonly = True)
    typ, data = M.search(None, '(FROM "%s")' % (voice))
    return M, data