Skip to main content

An initial tagging script for notmuch mail

Project description

GithubTag CI Status

About

afew is an initial tagging script for notmuch mail:

Its basic task is to provide automatic tagging each time new mail is registered with notmuch. In a classic setup, you might call it after ‘notmuch new’ in an offlineimap post sync hook.

It can do basic things such as adding tags based on email headers or maildir folders, handling killed threads and spam.

In move mode, afew will move mails between maildir folders according to configurable rules that can contain arbitrary notmuch queries to match against any searchable attributes.

fyi: afew plays nicely with alot, a TUI for notmuch mail ;)

IRC

Feel free to ask your questions and discuss usage in the #afewmail IRC Channel on Libera.Chat.

Features

  • spam handling (flush all tags, add spam)

  • killed thread handling

  • automatic propagation of tags to whole thread

  • tags posts to lists with lists, $list-id

  • autoarchives mails sent from you

  • catchall -> remove new, add inbox

  • can operate on new messages [default], --all messages or on custom query results

  • can move mails based on arbitrary notmuch queries, so your sorting may show on your traditional mail client (well, almost ;))

  • has a --dry-run mode for safe testing

Installation and Usage

Full documentation is available in the docs/ directory and in rendered form at afew.readthedocs.io.

Have fun :)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

afew-4.0.1.tar.gz (43.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

afew-4.0.1-py3-none-any.whl (36.1 kB view details)

Uploaded Python 3

File details

Details for the file afew-4.0.1.tar.gz.

File metadata

  • Download URL: afew-4.0.1.tar.gz
  • Upload date:
  • Size: 43.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for afew-4.0.1.tar.gz
Algorithm Hash digest
SHA256 2cf2920f868c01112d7f963803da1ae9287996ffeeb8ba5a99c3f7e5206003f3
MD5 ae1fa3f3ae03bcf1bf8e17fc4e21c0d4
BLAKE2b-256 301c48042dc963dc75d8a5dc2dab86de6d7cfe29eaf33db6da73785765dfdbc1

See more details on using hashes here.

Provenance

The following attestation bundles were made for afew-4.0.1.tar.gz:

Publisher: release.yml on afewmail/afew

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file afew-4.0.1-py3-none-any.whl.

File metadata

  • Download URL: afew-4.0.1-py3-none-any.whl
  • Upload date:
  • Size: 36.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for afew-4.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 441ff417305b2b6fd16273f16c3fa1d7c68f4f23d0cf93acfd11dc688745407b
MD5 45d7c9077443d97af2d63caf38d3fbb5
BLAKE2b-256 ee78ae0e943261bf07a1725120adb2cfc3b562bfee1ecd8d1dec0c529938f050

See more details on using hashes here.

Provenance

The following attestation bundles were made for afew-4.0.1-py3-none-any.whl:

Publisher: release.yml on afewmail/afew

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page