Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/goneri/notmuch-filter
Your notmuch tag setting in a JSON file
https://github.com/goneri/notmuch-filter
Last synced: 25 days ago
JSON representation
Your notmuch tag setting in a JSON file
- Host: GitHub
- URL: https://github.com/goneri/notmuch-filter
- Owner: goneri
- License: other
- Created: 2012-10-28T22:08:55.000Z (about 12 years ago)
- Default Branch: master
- Last Pushed: 2015-06-12T18:08:11.000Z (over 9 years ago)
- Last Synced: 2024-10-04T17:23:38.324Z (about 1 month ago)
- Language: Go
- Size: 156 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
description
-----------A tool to tag mail. Configuration is loaded from a JSON file.
notmuch-filter will load a collection of filter from notmuch-filter.json and
apply tag depending on the result.It will also:
* drop `tag:inbox` tag from thread with `tag:killed` message.
* remove `tag:inbox` from messages with `tag:seen`
* add `tag:inbox` to complet the thread if a new message show upinstallation
------------You will need Go and notmuch Go binding.
notmuch-filter.json has to be copied in your Maildir.
The Maildir default location is `$HOME/Maildir` or `$NOTMUCH_CONFIG`.
configuration
-------------* Field: the header field of the mail
* Pattern: an regular expression
* Tags: tag to add or to remove```json
{"Field": "X-BeenThere", "Pattern": "[email protected]", "Tags": "+list +obnam -inbox" }
```usage
-----Edit `$HOME/.notmuch-config` and ensure new files will get the `new` tag:
[new]
tags=new$ getmail/fetchmail/offlineimap/whatever
$ notmuch new
$ notmuch-filterlicense
-------BSD, See LICENSE file.
contact
-------* Gonéri Le Bouder