def rule(event):
    if any(
        [
            all(
                [
                    event.deep_get("EventID", default="") == 4898,
                    "CT_FLAG_ENROLLEE_SUPPLIES_SUBJECT"
                    in event.deep_get("TemplateContent", default=""),
                ]
            ),
            all(
                [
                    event.deep_get("EventID", default="") == 4899,
                    "CT_FLAG_ENROLLEE_SUPPLIES_SUBJECT"
                    in event.deep_get("NewTemplateContent", default=""),
                ]
            ),
        ]
    ):
        return True
    return False
