def get_emails(plex):
    """
    Retrieves a list of plex user accounts and returns each of their email
    addresses.
    """
    users = plex.myPlexAccount().users()
    user_emails = [user.email for user in users]

    return user_emails