README

Perl6 binding for Notmuchmail

image i_travis_ci_org_goneri_p6_email_notmuch_svg_branch_master not found

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 [email protected]

The Camelia image is copyright 2009 by Larry Wall. "Raku" is trademark of the Yet Another Society. All rights reserved.