# mbrt/gmailctl

Declarative configuration for Gmail filters

Repository: https://github.com/mbrt/gmailctl
Canonical: https://ross.abutalabs.com/products/gmailctl
Language: Go
License: MIT
License Family: permissive
Topics: gmail, go, jsonnet, labels, filters, cli, gmail-filter
Last push: 2026-08-05T08:22:17+00:00

## Health v2 (maintenance only)
Score: 81/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 96, release rhythm 52, longevity 100
- inputs: {"age_days": 2948, "days_push": 28, "days_rel": 106, "gap_med": 484, "n_releases_24m": 2}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 2192, forks 84 (observed 2026-08-28T04:06:24.233708+00:00)

## What it is
gmailctl is a Go CLI tool that lets you manage Gmail filters declaratively using Jsonnet configuration files. It applies filters directly through the Gmail API, with features like query simplification, diffing, and testing.

## Use cases
- manage gmail filters as code
- declaratively configure gmail labels and filters
- apply email filters via gmail api instead of manual xml import
- refactor and test gmail filter rules
- keep gmail filters under the 1500 character limit
- sync filter configuration across multiple gmail accounts

## When to avoid
- you only have a handful of simple filters and the Gmail UI is sufficient
- you need YAML configuration, which is unsupported
- you don't want to grant OAuth2 API access to your Gmail account

## Facets
- artifact type: cli-tool
- maturity: active
- function: email, configuration-management, cli, developer-tools
- domain: email, developer-tools
- platform: cli, cross-platform, go
- tags: gmail, gmail-filters, net, declarative-configuration, email-organization, labels, automation, command-line

## Member repositories
- mbrt/gmailctl (main) score 81

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:06:24.233708+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T02:47:26.717915+00:00, confidence not recorded.
  - readme: https://github.com/mbrt/gmailctl (fetched 2026-08-28T04:06:24.233708+00:00, sha bff6e6d83c12)
- Data as of 2026-08-30T08:39:29.467469+00:00.
