Automation and scraping · Independent · 26 Oct 2026

afewmail/afew

an initial tagging script for notmuch mail

← Automation and scraping
afew: automatic email tagging. Sorts and labels new mail for notmuch.
Verified26 Oct 2026

Radar check

What we found when we opened it. Every bar is one fact, with its date.

Alive50

Last code pushed 26 Jul 2026, 3 months before this check.

Releases70

Latest release 4.0.0 on 16 Jul 2026.

Maturity100

Public since October 2011, about 15 years.

Adoption51

342 stars and 106 forks.

Activity0

0 commits and 0 new issues in the last 90 days.

Community80

76 contributors. No pull requests merged in 90 days; changes go in directly.

Security40

No security policy file says how to report a problem. No published security advisories.

Licence ISC: permissive: use it for anything, keep the noticeSetup effort 3 of 5Payoff 4 of 5
How the bars are scored
  • Alive. Days since the last code push: a week or less 100, a month 90, three months 70, six months 50, a year 30, eighteen months 15, older 0.
  • Releases. Age of the latest GitHub release, on a similar scale; no bar when the project publishes no releases.
  • Maturity. Age of the project: eight years 100, five 90, three 70, two 55, one 40, six months 25, younger 10.
  • Adoption. Stars on a log scale: 100,000 stars is 100, 10,000 is 80, 1,000 is 60, 100 is 40.
  • Activity. Commits in the last 90 days: 300 or more 100, 100 85, 30 65, 10 45, any 25.
  • Community. People who have contributed: 100 or more 100, 30 80, 10 60, 5 40, 2 25, one 10.
  • Security. A published security policy 80, none 40; published advisories are listed, not scored.

Checked by Repo Radar on 26 Oct 2026 from the repository on GitHub.

In simple English

This tool automatically labels your emails when they arrive on your computer. It reads email headers or folders and adds tags such as spam or read. You run it whenever your mail syncs. It keeps your inbox clean without making you click anything. You need some technical skill to set up the rules in a text file.

What it is

afew is a Python script that acts as an initial tagging tool for the notmuch mail system. It applies filters to new messages and can move email files between folders based on your search queries.

What it is good for

People who read email in the terminal using notmuch and want automatic sorting without a heavy desktop mail client.

Stars342
LicenceISC
Latest4.0.0 (2026-07-16)checked 26 Oct 2026
Last code change2026-07-26
Written inPython
Setup effort
3 / 5
Payoff
4 / 5
Good
  • Sorts new mail automatically after every sync.
  • Moves messages between folders using your custom rules.
  • Handles spam and cleans up dead email threads.
Watch for
  • Requires an existing setup of notmuch mail.
  • Needs Python and manual configuration file edits.
  • Small community and older codebase with open issues.
Replaces

manual email sorting

Works well with

notmuch

Similar repositories
  • notmuch/notmuch214 stars

    The core email indexing system that afew relies on for storing and searching mail.

  • pazz/alot749 stars

    A text-based user interface for notmuch mail that pairs well with automated tagging.

Also reviewed on Repo Radar
  • Athou/commafeed3.6k stars

    A feed reader you run yourself, which collects new articles from the sites you follow.

  • apache/airflow47k stars

    Runs chains of scheduled jobs written in Python, and keeps a record of every run.

  • cybertec-postgresql/pg_timetable1.4k stars

    A job scheduler for PostgreSQL whose jobs and schedules live in the database itself.

Install
source venv/bin/activate
pip install afew

Independent: reviewed for Repo Radar outside the daily editions. Every independent repository

On Stack Radar: Productivity & Collaboration › Email & Team Communication › Inbox Cleanup & Email Filtering.

Get the next edition in your inbox

A dozen repositories, opened and checked. The licence read, the last release dated, and the ones that did not make it named with the reason. It is the half most lists leave out.

No tracking pixels. One click to leave. The archive stays free either way.

We use your address to send the edition and nothing else. Confirm by email, leave in one click. How we handle it.