The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

App::SpamcupNG::Summary::Receiver - representation of a SPAM report receiver

DESCRIPTION

This class was created to facilitate the handling of submitted SPAM reports for the interested parties. Sometimes a party doesn't actually receive a report and that is expected by design.

ATTRIBUTES

email: the "e-mail" of the report
report_id: the ID of the sent report

Sometimes a SPAM report is not sent to an e-mail address, Spamcop calls that "devnull'ing": the report is just stored for statistical reasons, no real e-mail address receive the report.

In those cases, only the indication of the domain that would receive the SPAM report is stored, without a report sent ID (actually this ID exists, but the web interface does not exports that info).

METHODS

new

Creates a new instance.

Expects as parameter a array reference, where the first index is the "email" and the second the SPAM report sent ID.

The first parameter cannot be undef, while the second is acceptabled.

as_text

Returns the receiver attributes as strings, separated by commas.

If some of attributes are undef, the string not avaialable will be used instead.

is_devnulled

Returns true (1) if the receiver was stored for statistics only or if it was indeed reported to a domain, false (0) otherwise.

SEE ALSO

AUTHOR

Alceu Rodrigues de Freitas Junior, <glasswalk3r@yahoo.com.br>

COPYRIGHT AND LICENSE

This software is copyright (c) 2018 of Alceu Rodrigues de Freitas Junior, <glasswalk3r@yahoo.com.br>

This file is part of App-SpamcupNG distribution.

App-SpamcupNG is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

App-SpamcupNG is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with App-SpamcupNG. If not, see <http://www.gnu.org/licenses/>.