{"id":17383146,"url":"https://github.com/drhdev/dodmca","last_synced_at":"2025-09-11T07:40:08.578Z","repository":{"id":228871634,"uuid":"775139018","full_name":"drhdev/dodmca","owner":"drhdev","description":"A shell script checking emails for dmca infringement notifications from Digitalocean and sending a telegram message.","archived":false,"fork":false,"pushed_at":"2024-03-20T21:05:21.000Z","size":13,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-27T20:49:37.643Z","etag":null,"topics":["cronjob","digitalocean","dmca","dmca-notice","dmca-takedown","email","email-pars","notification","shellscript","telegram","telegram-bot"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/drhdev.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}},"created_at":"2024-03-20T20:40:38.000Z","updated_at":"2024-03-20T22:03:13.000Z","dependencies_parsed_at":"2024-03-20T22:25:43.623Z","dependency_job_id":null,"html_url":"https://github.com/drhdev/dodmca","commit_stats":null,"previous_names":["drhdev/dodmca"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/drhdev/dodmca","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/drhdev%2Fdodmca","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/drhdev%2Fdodmca/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/drhdev%2Fdodmca/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/drhdev%2Fdodmca/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/drhdev","download_url":"https://codeload.github.com/drhdev/dodmca/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/drhdev%2Fdodmca/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":274595984,"owners_count":25314020,"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","status":"online","status_checked_at":"2025-09-11T02:00:13.660Z","response_time":74,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["cronjob","digitalocean","dmca","dmca-notice","dmca-takedown","email","email-pars","notification","shellscript","telegram","telegram-bot"],"created_at":"2024-10-16T07:40:45.869Z","updated_at":"2025-09-11T07:40:08.514Z","avatar_url":"https://github.com/drhdev.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# dodmca\n\nThe `dodmca.sh` script automates the process of logging into an email account via IMAP, scanning for specific emails that match predefined criteria, and performing actions based on those criteria. Specifically designed to handle DMCA notices, security alerts, and abuse reports from DigitalOcean, this script filters emails for certain keywords in the sender address, subject, and body of the email. When a matching email is found, the script creates a text file with details of the email and offers the option to notify a user via Telegram.\n\n## Features\n\n- IMAP email login and processing\n- Filtering emails based on sender, subject, and body content\n- Creation of detailed log files for matching emails\n- Optional Telegram notifications\n- Configuration of IMAP server, port, and credentials\n- Customizable search keywords and logic\n- Management of log file size and verbosity\n\n## Prerequisites\n\nBefore you install and run the `dodmca.sh` script, ensure you have the following prerequisites installed on your system:\n\n- `mutt` or a similar utility for handling email content\n- `mailutils` for email processing\n- An IMAP server and credentials for accessing the email account\n\n## Installation\n\n1. Clone the repository to your local machine:\n\n```bash\ngit clone https://github.com/drhdev/dodmca.git\n```\n\n2. Navigate to the `dodmca` directory:\n\n```bash\ncd dodmca\n```\n\n3. Make the script executable:\n\n```bash\nchmod +x dodmca.sh\n```\n\n4. (Optional) If you intend to use the Telegram notification feature, ensure `totelgram.sh` is also in the directory and executable.\n\n## Usage\n\nTo run the `dodmca.sh` script, use the following command:\n\n```bash\n./dodmca.sh [options]\n```\n\n### Options\n\nThe script supports several options for customization:\n\n- `-e` Email address to check\n- `-s` IMAP server\n- `-p` IMAP port\n- `-w` Password for IMAP login\n- `-k` Keywords to search in the sender's email address\n- `-l` Keywords to search in the email subject\n- `-m` Keywords to search in the email body\n- `-n` Enable/disable sending to Telegram (on/off)\n- `-o` Path to store the text files\n- `-q` Maximum number of text files to keep\n- `-r` Path for the log file\n- `-t` Output verbosity (verbose/silent)\n\nFor detailed descriptions of each option, refer to the script's inline documentation.\n\n## Contributing\n\nContributions are welcome! If you have suggestions for improvements or bug fixes, please open an issue or submit a pull request.\n\n## License\n\nThis project is licensed under the GNU Public License - see the [LICENSE](LICENSE) file for details.\n\n## Acknowledgments\n\n- Special thanks to the DigitalOcean community for inspiring this project.\n- Thank you to all contributors and users of this script.\n\nFor more information, issues, and feature requests, please visit the [repository issues page](https://github.com/drhdev/dodmca/issues).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdrhdev%2Fdodmca","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdrhdev%2Fdodmca","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdrhdev%2Fdodmca/lists"}