def rule(event):
    if any(
        [
            all(
                [
                    "/etc/emond.d/rules/" in event.deep_get("TargetFilename", default=""),
                    event.deep_get("TargetFilename", default="").endswith(".plist"),
                ]
            ),
            "/private/var/db/emondClients/" in event.deep_get("TargetFilename", default=""),
        ]
    ):
        return True
    return False
