NAME

Net::SMTP::Verify::ResultSet - resultset for Net::SMTP::Verify checks

VERSION

version 1.04

SYNOPSIS

  $rs = Net::SMTP::Verify::ResultSet->new;
  $rs->set( [
    'rcpt@domain.de',
    'rcpt2@domain.de',
  ], 'smtp_code', 200);
  $rs->print_text;

DESCRIPTION

This class will hold a set of Net::SMTP::Verify::Result objects.

ATTRIBUTES

results

A HashRef holding the Net::SMTP::Verify::Result objects.

METHODS

recipient( $rcpt ), rcpt( $rcpt )

Get the result for address $rcpt.

recipients(), rcpts()

Get all recipient addresses in the resultset.

entries()

Returns a list of all Net::SMTP::Verify::Result objects.

count()

Returns the number of result objects.

add_result( $result )

Adds a single $result object to the resultset.

set( $rcpt, $field, $params )

If theres no result for $rcpt in the resultset it will create an result object for the address.

Then it will call the accessor $field with @params.

If $rcpt is a array reference instead of a scalar it will do that for every address listed in the array.

dump()

Output all results with Data::Dumper.

dump_json()

Output all results as JSON.

Output all results as text.

is_all_success()

Returns true if all object are success.

successfull_rcpts(), success_rcpts() =head2 error_rcpts() =head2 temp_error_rcpts() =head2 perm_error_rcpts()

Returns all successfull|error|temp_error|perm_error result objects.

AUTHOR

Markus Benning <ich@markusbenning.de>

COPYRIGHT AND LICENSE

This software is Copyright (c) 2015 by Markus Benning <ich@markusbenning.de>.

This is free software, licensed under:

  The GNU General Public License, Version 2, June 1991