{"id":41690717,"url":"https://github.com/konimarti/catbox","last_synced_at":"2026-01-24T20:15:08.983Z","repository":{"id":62867621,"uuid":"561091223","full_name":"konimarti/catbox","owner":"konimarti","description":"Process every mbox message with a shell command.","archived":false,"fork":false,"pushed_at":"2023-10-03T08:33:09.000Z","size":7,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-07T10:01:12.015Z","etag":null,"topics":["aerc","filters","mbox"],"latest_commit_sha":null,"homepage":"","language":"Go","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/konimarti.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-11-02T23:34:28.000Z","updated_at":"2023-06-10T08:14:05.000Z","dependencies_parsed_at":"2024-06-20T03:21:07.646Z","dependency_job_id":null,"html_url":"https://github.com/konimarti/catbox","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/konimarti/catbox","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/konimarti%2Fcatbox","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/konimarti%2Fcatbox/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/konimarti%2Fcatbox/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/konimarti%2Fcatbox/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/konimarti","download_url":"https://codeload.github.com/konimarti/catbox/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/konimarti%2Fcatbox/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28736502,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-24T19:23:36.361Z","status":"ssl_error","status_checked_at":"2026-01-24T19:23:28.966Z","response_time":89,"last_error":"SSL_read: 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":["aerc","filters","mbox"],"created_at":"2026-01-24T20:15:07.178Z","updated_at":"2026-01-24T20:15:08.978Z","avatar_url":"https://github.com/konimarti.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# catbox\n\n`catbox` will pipe every message from an mbox file as an input to a shell\ncommand. A message counter is available as a shell variable $NR.\n\nIf no file is specified, `catbox` will read from stdin.\n\nInspired by [caeml](https://github.com/ferdinandyb/caeml/).\n\n### Installation\n\n```sh\ngo install github.com/konimarti/catbox@latest\n```\n\n### Usage\n\nUsage: `catbox [-h|-c \u003ccmd\u003e] \u003cmbox\u003e`\n\n### Integration with aerc\n\nAdd this line to the [filters] section in your aerc.conf:\n\n```\napplication/mbox=catbox -c caeml | colorize\n```\n\n### Examples\n\nThe following examples assume that you have a file `test.mbox` in a valid mbox\nformat in your local directory.\n\n- Show the message number counter:\n\n```\ncatbox -c 'echo $NR' test.mbox`\n```\n\n- Pipe every mbox message to caeml:\n\n```\ncatbox -c caeml test.mbox\n```\n\n- Save every mbox message in a separate file\n\n```\ncatbox -c 'cat \u003e message_$NR' test.mbox\n```\n\n- Print only the first ten messages:\n\n```\ncatbox -c \"awk -v cbnr=\\$NR '{if (cbnr\u003e10) print}'\" test.mbox\n```\n\n- Read from stdin and only display the full message headers:\n\n```\ncat test.mbox | catbox -c \"sed -n '1,/^\\\\s*$/p'\"\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkonimarti%2Fcatbox","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkonimarti%2Fcatbox","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkonimarti%2Fcatbox/lists"}