def format_file_name(emailObject):
    """
    Returns a file name + path for each csv file based on the email send date
    :return: string
    """
    date_email = (
        str(emailObject.date.month)
        + "-"
        + str(emailObject.date.day)
        + "-"
        + emailObject.attachments[0]["filename"].replace(" ", "-")
    )

    file_name = (
        "emails/processed/"
        + str(emailObject.date.year)
        + "/"
        + str(emailObject.date.month)
        + "/"
        + date_email
    )

    return file_name