{"id":25428349,"url":"https://github.com/homoluctus/maillogger","last_synced_at":"2026-03-15T08:04:58.624Z","repository":{"id":42431676,"uuid":"287978015","full_name":"homoluctus/maillogger","owner":"homoluctus","description":"Analysis tool for Postfix log in /var/log/maillog","archived":false,"fork":false,"pushed_at":"2022-04-06T21:55:50.000Z","size":34,"stargazers_count":2,"open_issues_count":3,"forks_count":3,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-09-25T00:58:04.521Z","etag":null,"topics":["analysis","csv","json","maillog","postfix","python","tsv"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/homoluctus.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-08-16T16:07:34.000Z","updated_at":"2022-04-02T08:48:46.000Z","dependencies_parsed_at":"2022-08-19T11:53:41.120Z","dependency_job_id":null,"html_url":"https://github.com/homoluctus/maillogger","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/homoluctus/maillogger","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/homoluctus%2Fmaillogger","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/homoluctus%2Fmaillogger/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/homoluctus%2Fmaillogger/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/homoluctus%2Fmaillogger/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/homoluctus","download_url":"https://codeload.github.com/homoluctus/maillogger/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/homoluctus%2Fmaillogger/sbom","scorecard":{"id":468377,"data":{"date":"2025-08-11","repo":{"name":"github.com/homoluctus/maillogger","commit":"b147e81411befd42a94f2252aae42def6d891732"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.8,"checks":[{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Code-Review","score":0,"reason":"Found 0/6 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/pull_request.yml:22: update your workflow using https://app.stepsecurity.io/secureworkflow/homoluctus/maillogger/pull_request.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/pull_request.yml:24: update your workflow using https://app.stepsecurity.io/secureworkflow/homoluctus/maillogger/pull_request.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/pull_request.yml:44: update your workflow using https://app.stepsecurity.io/secureworkflow/homoluctus/maillogger/pull_request.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/pull_request.yml:46: update your workflow using https://app.stepsecurity.io/secureworkflow/homoluctus/maillogger/pull_request.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/pull_request.yml:62: update your workflow using https://app.stepsecurity.io/secureworkflow/homoluctus/maillogger/pull_request.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/pull_request.yml:64: update your workflow using https://app.stepsecurity.io/secureworkflow/homoluctus/maillogger/pull_request.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/pull_request.yml:83: update your workflow using https://app.stepsecurity.io/secureworkflow/homoluctus/maillogger/pull_request.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/pull_request.yml:85: update your workflow using https://app.stepsecurity.io/secureworkflow/homoluctus/maillogger/pull_request.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release.yml:13: update your workflow using https://app.stepsecurity.io/secureworkflow/homoluctus/maillogger/release.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release.yml:15: update your workflow using https://app.stepsecurity.io/secureworkflow/homoluctus/maillogger/release.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release.yml:34: update your workflow using https://app.stepsecurity.io/secureworkflow/homoluctus/maillogger/release.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release.yml:50: update your workflow using https://app.stepsecurity.io/secureworkflow/homoluctus/maillogger/release.yml/master?enable=pin","Warn: pipCommand not pinned by hash: .github/workflows/pull_request.yml:91","Warn: pipCommand not pinned by hash: .github/workflows/pull_request.yml:30","Warn: pipCommand not pinned by hash: .github/workflows/pull_request.yml:52","Warn: pipCommand not pinned by hash: .github/workflows/pull_request.yml:70","Warn: pipCommand not pinned by hash: .github/workflows/release.yml:21","Info:   0 out of  12 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   5 pipCommand dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/pull_request.yml:1","Warn: no topLevel permission defined: .github/workflows/release.yml:1","Info: no jobLevel write permissions found"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":-1,"reason":"internal error: error during branchesHandler.setup: internal error: githubv4.Query: Resource not accessible by integration","details":null,"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 15 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Vulnerabilities","score":0,"reason":"16 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: PYSEC-2022-42986 / GHSA-43fp-rhv2-5gv8","Warn: Project is vulnerable to: PYSEC-2023-135 / GHSA-xqr8-7jwr-rhp7","Warn: Project is vulnerable to: PYSEC-2022-301 / GHSA-8fg9-p83m-x5pq","Warn: Project is vulnerable to: PYSEC-2024-60 / GHSA-jjg7-2v4v-x38h","Warn: Project is vulnerable to: PYSEC-2020-92 / GHSA-hj5v-574p-mj7c","Warn: Project is vulnerable to: PYSEC-2022-42969","Warn: Project is vulnerable to: PYSEC-2021-142 / GHSA-8q59-q68h-6hv4","Warn: Project is vulnerable to: GHSA-9hjg-9r4m-mvj7","Warn: Project is vulnerable to: GHSA-9wx4-h78v-vm56","Warn: Project is vulnerable to: PYSEC-2023-74 / GHSA-j8r2-6x86-q33q","Warn: Project is vulnerable to: GHSA-34jh-p97f-mpxf","Warn: Project is vulnerable to: PYSEC-2023-212 / GHSA-g4mx-q9vg-27p4","Warn: Project is vulnerable to: GHSA-pq67-6m6q-mj2v","Warn: Project is vulnerable to: PYSEC-2021-108 / GHSA-q2q7-5pp4-w6pg","Warn: Project is vulnerable to: PYSEC-2023-192 / GHSA-v845-jxx5-vc9f","Warn: Project is vulnerable to: GHSA-jfmj-5v4g-7637"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-19T13:07:08.845Z","repository_id":42431676,"created_at":"2025-08-19T13:07:08.845Z","updated_at":"2025-08-19T13:07:08.845Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30538255,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-15T07:17:37.589Z","status":"ssl_error","status_checked_at":"2026-03-15T07:17:31.738Z","response_time":61,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["analysis","csv","json","maillog","postfix","python","tsv"],"created_at":"2025-02-17T01:38:36.870Z","updated_at":"2026-03-15T08:04:58.587Z","avatar_url":"https://github.com/homoluctus.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# maillogger\n\n![PyPI](https://img.shields.io/pypi/v/maillogger)\n![PyPI - Python Version](https://img.shields.io/pypi/pyversions/maillogger)\n![PyPI - License](https://img.shields.io/pypi/l/maillogger)\n\nAnalysis tool for Postfix log in /var/log/maillog\n\n\u003c!-- TOC depthFrom:2 --\u003e\n\n- [Feature](#feature)\n- [Installation](#installation)\n- [Usage](#usage)\n- [Examples](#examples)\n  - [Output a CSV file](#output-a-csv-file)\n  - [Output a JSON file](#output-a-json-file)\n  - [Output a TSV file](#output-a-tsv-file)\n  - [Output a compressed CSV file](#output-a-compressed-csv-file)\n- [Use Case](#use-case)\n  - [Analysis using MySQL](#analysis-using-mysql)\n\n\u003c!-- /TOC --\u003e\n\n## Feature\n\n- Load maillog file\n  - Identify text or gzip automatically\n- Parse maillog\n  - Use regex\n  - Convert to Python dictionary\n- Output the parsed maillog to files\n  - Supported data format is CSV, TSV and JSON\n  - Compression (gzip) is possible\n\n## Installation\n\n```bash\npip install maillogger\n```\n\n## Usage\n\n```\nusage: maillogger [-h] [-f {csv,tsv,json}] [-c] [-V] source_file target_file\n\nAnalysis tool for Postfix log in /var/log/maillog\n\npositional arguments:\n  source_file           Specify Postfix maillog file\n  target_file           Specify the filename to write parsed maillog. The file\n                        extension is automatically added to the end of\n                        filename.\n\noptional arguments:\n  -h, --help            show this help message and exit\n  -f {csv,tsv,json}, --format {csv,tsv,json}\n                        File data format to write the parsed maillog (Default:\n                        csv)\n  -c, --compress        Compress the output file with gzip\n  -V, --version         Show maillogger command version\n```\n\n## Examples\n\n### Output a CSV file\n\n```bash\nmaillogger /var/log/maillog result\n```\n\nor\n\n```bash\nmaillogger /var/log/maillog result -f csv\n```\n\nThen, `result.csv` is generated in current working directory.\n\n### Output a JSON file\n\n```bash\nmaillogger /var/log/maillog result -f json\n```\n\n### Output a TSV file\n\n```bash\nmaillogger /var/log/maillog result -f tsv\n```\n\n### Output a compressed CSV file\n\n```bash\nmaillogger /var/log/maillog result -f csv -c\n```\n\nThen, `result.csv.gz` is generated in current working directory.\n\n## Use Case\n\n### Analysis using MySQL\n\n1. Convert maillog text to CSV file\n\n```bash\nmaillogger /var/log/maillog /path/to/any -f csv\n```\n\n2. Create Table\n\n```sql\nCREATE TABLE maillog\n(\n    mail_id VARCHAR(15) NOT NULL,\n    to_address VARCHAR(50) NOT NULL,\n    relay text,\n    delay VARCHAR(10),\n    delays VARCHAR(20),\n    dsn VARCHAR(10),\n    status VARCHAR(10),\n    description text,\n    datetime DATETIME NOT NULL,\n    PRIMARY KEY (mail_id, datetime),\n    INDEX i_status(status)\n) ENGINE=InnoDB DEFAULT CHARSET=utf8;\n```\n\n3. Load CSV file\n\n```sql\nLOAD DATA INFILE '/path/to/any.csv'\nIGNORE INTO TABLE maillog\nFIELDS TERMINATED BY ',' OPTIONALLY ENCLOSED BY '\"'\nLINES TERMINATED BY '\\r\\n'\nIGNORE 1 LINES;\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhomoluctus%2Fmaillogger","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhomoluctus%2Fmaillogger","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhomoluctus%2Fmaillogger/lists"}