* Ricardo SIGNES <[EMAIL PROTECTED]> [2008-02-21T23:38:18]
> I think my main concern relates to the way that one would use Classifier, and
> what it would return.  I imagine this as a very basic use case:
> 
>   my $classifier = Email::Classifier->new({
>     classifiers => [ ... ],
>     ...
>   };

Rather than just wave my hands and say, "Uh, something like this," I have put
together a quick implementation of Email::Classifier as I described it.

Something not implemented, from a post in July by Dave O:

>   my $r = $parser->parse( $email_abstract );
>   if( $r->is_gpg_signed() ) {   # let plugins provide new methods to
>                                 # result object (inheritance? Sub::Exporter?)
>       if( $r->valid_signature_by('0x12345678') ) {
>           # Yes, we fully trust the message now
>           eval $email_abstract->get_body();

...the ability to add report methods.  I think that needs more thought.

Tarball attached.

-- 
rjbs

Attachment: Email-Classifier-0.001.tar.gz
Description: application/tar-gz

Reply via email to