App-SpamcupNG

 view release on metacpan or  search on metacpan

TODO.txt  view on Meta::CPAN

- Save all captured data to SQLite database.
- Redact authentication credentials when running in DEBUG level.
- Reuse user agent cookies if possible before repeating authentication step.

lib/App/SpamcupNG/Error/LoginFailed.pm  view on Meta::CPAN


App::SpamcupNG::Error::LoginFailed - an Error subclass that represents a login
attempt that failed.

=head1 SYNOPSIS

See L<App::SpamcupNG::Error::Factory> instead of creating it manually.

=head1 DESCRIPTION

A login failed means there is a problem with your Spamcop account credentials.

=head1 METHODS

=head2 new

Creates a new instance.

Expects as parameter an array reference containing the bounce error message.

A instance of this class is always considered as fatal.

lib/App/SpamcupNG/UserAgent.pm  view on Meta::CPAN

    }
    else {
        $logger->warn($status);

        if ( ($password) and ( $is_basic == 0 ) ) {
            $logger->warn('Retrying with basic authentication');
            return $self->login( $id, $password, 1 );
        }

        $logger->fatal(
'Cannot connect to server or invalid credentials. Please verify your username and password and try again.'
        );
    }

    return undef;
}

=head2 spam_report

Fetches a SPAM report.

 view all matches for this distribution
 view release on metacpan -  search on metacpan

( run in 0.505 second using v1.00-cache-2.02-grep-82fe00e-cpan-2c419f77a38b )