Skip to content

goneri/notmuch-filter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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 up

installation

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
    {"Field": "X-BeenThere", "Pattern": "obnam@flarn.net", "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-filter

license

BSD, See LICENSE file.

contact

About

Your notmuch tag setting in a JSON file

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages