def rule(event):
    if any(
        [
            all(
                [
                    event.deep_get("cs-method", default="") == "POST",
                    "/service/extension/backup/mboximport\\?"
                    in event.deep_get("cs-uri-query", default=""),
                    "account-name" in event.deep_get("cs-uri-query", default=""),
                    "ow" in event.deep_get("cs-uri-query", default=""),
                    "no-switch" in event.deep_get("cs-uri-query", default=""),
                    "append" in event.deep_get("cs-uri-query", default=""),
                    event.deep_get("sc-status", default="") in [401, 200],
                ]
            ),
            all(
                [
                    "/zimbraAdmin/" in event.deep_get("cs-uri-query", default=""),
                    event.deep_get("cs-uri-query", default="").endswith(".jsp"),
                    "200" in event.deep_get("sc-status", default=""),
                ]
            ),
        ]
    ):
        return True
    return False
