mirror of
https://github.com/gutmensch/docker-dmarc-report.git
synced 2025-12-29 16:15:55 +00:00
chore(build): add github action
* update documentation * fix report parser option and defaults * fixes #28 * fixes #31
This commit is contained in:
@@ -12,8 +12,8 @@ $dbname = $ENV{'REPORT_DB_NAME'};
|
||||
$dbuser = $ENV{'REPORT_DB_USER'};
|
||||
$dbpass = $ENV{'REPORT_DB_PASS'};
|
||||
$dbhost = $ENV{'REPORT_DB_HOST'}; # Set the hostname if we can't connect to the local socket.
|
||||
$dbport = $ENV{'REPORT_DB_PORT'} || 3306;
|
||||
$dbtype = $ENV{'REPORT_DB_TYPE'} || 'mysql';
|
||||
$dbport = $ENV{'REPORT_DB_PORT'} // 3306;
|
||||
$dbtype = $ENV{'REPORT_DB_TYPE'} // 'mysql';
|
||||
|
||||
if(exists $ENV{PARSER_IMAP_SERVER_WITH_PORT} && defined $ENV{PARSER_IMAP_SERVER_WITH_PORT}) {
|
||||
my @server_attr = split ':', $ENV{PARSER_IMAP_SERVER_WITH_PORT};
|
||||
@@ -41,12 +41,12 @@ $imapmovefolder = $ENV{'PARSER_IMAP_MOVE_FOLDER'};
|
||||
$imapmovefoldererr = $ENV{'PARSER_IMAP_MOVE_FOLDER_ERR'};
|
||||
|
||||
# maximum size of XML files to store in database, long files can cause transaction aborts
|
||||
$maxsize_xml = 50000;
|
||||
$maxsize_xml = $ENV{'PARSER_XML_MAXSIZE'} // 50000;
|
||||
# store XML as base64 encopded gzip in database (save space, harder usable)
|
||||
$compress_xml = 0;
|
||||
$compress_xml = $ENV{'PARSER_XML_COMPRESS'} // 0;
|
||||
|
||||
# if there was an error during file processing (message does not contain XML or ZIP parts,
|
||||
# or a database error) the parser reports an error and does not delete the file, even if
|
||||
# delete_reports is set (or --delete is given). Deletion can be enforced by delete_failed,
|
||||
# however not for database errors.
|
||||
$delete_failed = 0;
|
||||
$delete_failed = $ENV{'PARSER_DELETE_FAILED'} // 0;
|
||||
|
||||
Reference in New Issue
Block a user