The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Dezi::Aggregator::Mail - crawl a mail box

SYNOPSIS

    use Dezi::Aggregator::Mail;
    
    my $aggregator = 
        Dezi::Aggregator::Mail->new( 
            indexer => Dezi::Indexer::Native->new()
        );
    
    $aggregator->indexer->start;
    $aggregator->crawl('path/to/my/maildir');
    $aggregator->indexer->finish;

DESCRIPTION

Dezi::Aggregator::Mail is a Dezi::Aggregator subclass designed for providing full-text search for your email.

Dezi::Aggregator::Mail uses Mail::Box, available from CPAN.

METHODS

Since Dezi::Aggregator::Mail inherits from Dezi::Aggregator, read the Dezi::Aggregator docs first. Any overridden methods are documented here.

BUILD

Internal method only.

Adds the special mail MetaName to the Config object before opening indexer.

crawl( path_to_maildir )

Create index.

Returns number of emails indexed.

get_doc( folder, Mail::Message )

Extract data and content from Mail::Message in folder and return doc_class() object.

AUTHOR

Peter Karman, <karpet@dezi.org>

BUGS

Please report any bugs or feature requests to bug-dezi-app at rt.cpan.org, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Dezi-App. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.

SUPPORT

You can find documentation for this module with the perldoc command.

    perldoc Dezi::App

You can also look for information at:

COPYRIGHT AND LICENSE

Copyright 2014 by Peter Karman

This library is free software; you can redistribute it and/or modify it under the terms of the GPL v2 or later.

SEE ALSO

http://dezi.org/, http://swish-e.org/, http://lucy.apache.org/