Perl6 binding for Notmuchmail
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
lib/Email
t adjustment for notmuch 0.25 (abi 5) Aug 21, 2017
.travis.yml travis: do not install notmuch python binding Nov 14, 2018
LICENSE initial import Jan 8, 2016
META6.json
README.md

README.md

Perl6 binding for Notmuchmail

Build Status

Notmuchmail ( https://notmuchmail.org/ ) is a mail indexation tool. This Perl6 module provides binding for a limited subset of its API.

The library has been tested with Notmuch 0.25 and greater, it does not work anymore with the older version.

Example

use v6;
use Email::Notmuch;
my $database = Database.new('/home/goneri/Maildir');
my $query = Query.new($database, 'tag:todo');
my $messages = $query.search_messages();
for $messages.all() -> $message {
    say $message.get_header('from');
    $message.add_tag('seen');
    say $message.get_tags().all();
}

License

The project uses the GPLv3 or greater and is Copyright 2015-2016 Gonéri Le Bouder goneri@lebouder.net