notmuch/contrib/notmuch-deliver
Justus Winter 37e293eb5f Use notmuch_database_destroy instead of notmuch_database_close
Adapt notmuch-deliver to the notmuch_database_close split.

Signed-off-by: Justus Winter <4winter@informatik.uni-hamburg.de>
2012-04-28 09:29:12 -03:00
..
m4 notmuch-deliver: Initial import 2011-11-05 01:12:34 +02:00
maildrop notmuch-deliver: Import from maildrop-2.5.5 2011-12-06 16:41:33 +02:00
src Use notmuch_database_destroy instead of notmuch_database_close 2012-04-28 09:29:12 -03:00
.gitignore notmuch-deliver: update gitignore 2011-11-05 01:12:35 +02:00
.mailmap notmuch-deliver: Add mailmap 2011-11-05 01:12:35 +02:00
autogen.sh notmuch-deliver: Initial import 2011-11-05 01:12:34 +02:00
configure.ac Move files copied from maildrop to a separate hierarchy. 2011-11-05 01:12:35 +02:00
Makefile.am Move files copied from maildrop to a separate hierarchy. 2011-11-05 01:12:35 +02:00
README.mkd notmuch-deliver: GPL-3+ 2011-12-06 17:06:30 +02:00

About

notmuch-deliver is a maildir delivery tool.

Overview

notmuch-deliver is a maildir delivery tool for notmuch mail indexer. It reads from standard input, delivers the mail to the specified maildir and adds it to the notmuch database. This is meant as a convenient alternative to running notmuch new after mail delivery.

Usage

Here's a simple example for maildrop:

# Deliver local mail to $MAILDIR/.Local and add local tag.
if (/^From: root/:h)
{
  to "|notmuch-deliver -f -t local Local"
}

# Deliver lkml mail to $MAILDIR/.Lkml, add lkml tag and remove inbox tag.
if (/^List-Id: linux-kernel@vger.kernel.org/:h)
{
  to "|notmuch-deliver -f -t lkml -r inbox Lkml"
}

# Deliver the rest to $MAILDIR, adding personal tag
to "|notmuch-deliver -t personal"

Requirements

Contribute

Clone git://github.com/alip/notmuch-deliver.git.
Format patches are preferred. Either send a mail to me or poke me on IRC.
My personal e-mail address is alip@exherbo.org.
I'm available on IRC as alip on Freenode and OFTC.

License

You may redistribute this under the same terms as notmuch itself.