App-SpamcupNG
view release on metacpan or search on metacpan
The configuration file must be written as an YAML file, with the exact
properties below:
```YAML
---
ExecutionOptions:
all: y
stupid: y
check_only: n
alt_code: n
alt_user: n
verbosity: INFO
database:
enabled: true
path: /var/spamcupng/reports.db
Accounts:
Yahoo!:
e-mail: account@provider1.com.br
password: FOOBAR
Gmail:
e-mail: account@provider2.com.br
password: FOOBAR
```
All those options have their corresponding command line parameter. Be sure to
take care of file permissions to avoid disclosure of your SpamCop.net password!
### Local database
You probably noticed the following configuration lines from the YAML:
```YAML
database:
enabled: true
path: /var/spamcupng/reports.db
```
Those lines define the configuration for a local database based on
[SQLite](https://sqlite.org/).
This database will save data related to the submitted reports and can be used
to provide further details of what kind of SPAM you're getting and from.
## Local database schema
```mermaid
---
title: Reports sent to Spamcop
---
erDiagram
SUMMARY |o--o{ EMAIL_CHARSET : has
SUMMARY ||--|| EMAIL_CONTENT_TYPE : has
SUMMARY |o--o{ MAILER : has
SUMMARY ||--|| SUMMARY_RECEIVER : has
SUMMARY ||--|| SPAM_AGE_UNIT : has
SUMMARY_RECEIVER ||--|| RECEIVER : relates-to
SUMMARY {
integer id PK
string tracking_id UK
integer created
integer charset_id FK
integer content_type_id FK
integer age
integer age_unit_id FK
integer mailer_id FK
}
EMAIL_CHARSET {
integer id PK
string name
}
EMAIL_CONTENT_TYPE {
integer id PK
string name
}
MAILER {
integer id PK
string name
}
SUMMARY_RECEIVER {
integer id PK
integer summary_id FK
integer receiver_id FK
string report_id UK
}
RECEIVER {
integer id PK
string email UK
}
SPAM_AGE_UNIT {
integer id PK
string name UK
}
```
# 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/.
( run in 1.222 second using v1.01-cache-2.11-cpan-8f98c5d2c55 )