Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/goneri/p6-email-notmuch
Perl6 binding for Notmuchmail
https://github.com/goneri/p6-email-notmuch
notmuch perl6 perl6-binding raku rakulang
Last synced: about 1 month ago
JSON representation
Perl6 binding for Notmuchmail
- Host: GitHub
- URL: https://github.com/goneri/p6-email-notmuch
- Owner: goneri
- License: gpl-3.0
- Created: 2016-01-02T05:56:51.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2018-11-14T15:40:11.000Z (about 6 years ago)
- Last Synced: 2024-09-30T20:39:38.657Z (about 2 months ago)
- Topics: notmuch, perl6, perl6-binding, raku, rakulang
- Language: Perl 6
- Size: 33.2 KB
- Stars: 3
- Watchers: 3
- Forks: 3
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Perl6 binding for Notmuchmail
![Build Status](https://travis-ci.org/goneri/p6-Email-Notmuch.svg?branch=master)
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