{
  "version": "1.2",
  "description": "PST邮件清理规则",
  "rules": [
    {
      "id": "aws_notification",
      "folder_contains": "AWS Notification",
      "action": "keep_sample",
      "keep_count": 5,
      "keep_by": "unique_subject",
      "description": "AWS告警通知，每不同subject保留1封，最多5封"
    },
    {
      "id": "prisma_cloud",
      "folder_contains": "Prisma Cloud Notifications",
      "action": "keep_sample",
      "keep_count": 5,
      "keep_by": "unique_subject",
      "description": "Prisma Cloud通知，每不同subject保留1封，最多5封"
    },
    {
      "id": "x4x_tenant_provisioning",
      "folder_contains": "X4X-Tenant Provisioning",
      "action": "keep_sample",
      "keep_count": 5,
      "keep_by": "unique_subject",
      "description": "X4X租户配置通知，每不同subject保留1封，最多5封"
    },
    {
      "id": "qualys",
      "folder_contains": "Qualys",
      "action": "keep_sample",
      "keep_count": 5,
      "keep_by": "unique_subject",
      "description": "Qualys安全扫描通知，每不同subject保留1封，最多5封"
    },
    {
      "id": "teams_notification",
      "folder_contains": "Teams Notification",
      "action": "keep_if_attachment",
      "description": "Teams会议通知，有附件保留，无附件删除"
    },
    {
      "id": "sma_notification",
      "folder_contains": "SMA Notficiation",
      "action": "keep_sample",
      "keep_count": 10,
      "keep_by": "unique_subject",
      "description": "SMA工单通知，每月保留10封不同subject，其余删除"
    },
    {
      "id": "ppm_saas_change",
      "folder_contains": "PPM SaaS Change",
      "action": "delete_all",
      "description": "PPM故障单解决通知，全部删除"
    },
    {
      "id": "cloudhealth",
      "folder_contains": "CloudHealth",
      "action": "keep",
      "description": "CloudHealth成本报告，全部保留"
    },
    {
      "id": "saas_bi_report",
      "folder_contains": "SaaS BI Report",
      "action": "keep",
      "description": "BI数据推送，全部保留"
    },
    {
      "id": "x4x_tenant_decommissioning",
      "folder_contains": "X4X-Tenant Decommissioning",
      "action": "delete_all",
      "description": "租户下线通知，全部删除"
    },
    {
      "id": "x4x_license_renewal",
      "folder_contains": "X4X-License Renewal",
      "action": "delete_all",
      "description": "续期通知，全部删除"
    }
  ],
  "default_action": "keep",
  "updated": "2026-04-13"
}
