{"id":18055982,"url":"https://github.com/grahamedgecombe/pdf-decrypt-filter","last_synced_at":"2025-04-05T09:43:52.528Z","repository":{"id":66305307,"uuid":"72918552","full_name":"grahamedgecombe/pdf-decrypt-filter","owner":"grahamedgecombe","description":"Automatically decrypt PDF attachments in emails","archived":false,"fork":false,"pushed_at":"2019-06-17T20:26:26.000Z","size":4,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-10T20:22:04.816Z","etag":null,"topics":["mail","pdf","perl"],"latest_commit_sha":null,"homepage":"","language":"Perl","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"isc","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/grahamedgecombe.png","metadata":{"files":{"readme":"README.markdown","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":"2016-11-05T10:13:48.000Z","updated_at":"2022-05-25T06:24:07.000Z","dependencies_parsed_at":"2023-02-20T21:00:38.129Z","dependency_job_id":null,"html_url":"https://github.com/grahamedgecombe/pdf-decrypt-filter","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/grahamedgecombe%2Fpdf-decrypt-filter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/grahamedgecombe%2Fpdf-decrypt-filter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/grahamedgecombe%2Fpdf-decrypt-filter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/grahamedgecombe%2Fpdf-decrypt-filter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/grahamedgecombe","download_url":"https://codeload.github.com/grahamedgecombe/pdf-decrypt-filter/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247318721,"owners_count":20919483,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["mail","pdf","perl"],"created_at":"2024-10-31T01:13:07.619Z","updated_at":"2025-04-05T09:43:52.486Z","avatar_url":"https://github.com/grahamedgecombe.png","language":"Perl","funding_links":[],"categories":[],"sub_categories":[],"readme":"# pdf-decrypt-filter\n\n## Introduction\n\n`pdf-decrypt-filter` automatically decrypts PDF attachments in an email. It's\ndesigned for automated use with a Mail Delivery Agent such as `procmail` or\n`maildrop`.\n\n## Using with `procmail`\n\nUse a recipe like this in your `.procmailrc` file:\n\n    :0 fw\n    * ^From:.*encrypted-pdf-sender@example\\.com\n    | /path/to/pdf-decrypt-filter --password=hunter2\n\nAs rewriting the emails can break things like DKIM signatures, you might want to\nwrite the original emails to a file for backup purposes:\n\n    :0 cw :\n    * ^From:.*encrypted-pdf-sender@example\\.com\n    | gzip \u003e\u003e pdfs.gz\n\n    :0 afw\n    | /path/to/pdf-decrypt-filter --purge --password=hunter2\n\nBy default `pdf-decrypt-filter` will keep the encrypted PDF attachment in\naddition to the new plaintext attachment. The `--purge` flag can be used to\noverride this behaviour and remove the encrypted PDF attachment.\n\n## Limitations\n\n* Only supports a single password.\n* The entire script will fail if the password is incorrect.\n* Assumes the mail is a single `multipart/mixed` part directly containing one or\n  more `application/pdf` attachments.\n\n## Dependencies\n\n* [Perl 5][perl]\n* [File::Slurp][slurp]\n* [MIME::Tools][mimetools]\n* [qpdf][qpdf]\n\n## License\n\n`pdf-decrypt-filter` is available under the terms of the [ISC license][isc],\nwhich is similar to the 2-clause BSD license. See the `LICENSE` file for the\ncopyright information and licensing terms.\n\n[perl]: https://www.perl.org/\n[slurp]: https://metacpan.org/pod/File::Slurp\n[mimetools]: https://metacpan.org/pod/MIME::Tools\n[qpdf]: http://qpdf.sourceforge.net/\n[isc]: https://www.isc.org/downloads/software-support-policy/isc-license/\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgrahamedgecombe%2Fpdf-decrypt-filter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgrahamedgecombe%2Fpdf-decrypt-filter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgrahamedgecombe%2Fpdf-decrypt-filter/lists"}