{"id":20284472,"url":"https://github.com/artyom/bouncehandler","last_synced_at":"2025-08-31T14:34:31.861Z","repository":{"id":66758967,"uuid":"72738037","full_name":"artyom/bouncehandler","owner":"artyom","description":"Calls SQL queries on MySQL based on received SNS notifications about SQS bounces","archived":false,"fork":false,"pushed_at":"2017-01-17T19:29:31.000Z","size":6,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-08-03T00:08:21.842Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/artyom.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":"2016-11-03T11:19:18.000Z","updated_at":"2017-01-07T04:15:46.000Z","dependencies_parsed_at":"2024-06-20T11:16:22.833Z","dependency_job_id":"8bf6b63a-1a0d-457e-a79e-c5c7c156a8e6","html_url":"https://github.com/artyom/bouncehandler","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/artyom/bouncehandler","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/artyom%2Fbouncehandler","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/artyom%2Fbouncehandler/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/artyom%2Fbouncehandler/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/artyom%2Fbouncehandler/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/artyom","download_url":"https://codeload.github.com/artyom/bouncehandler/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/artyom%2Fbouncehandler/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":272991831,"owners_count":25027504,"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-08-31T02:00:09.071Z","response_time":79,"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":[],"created_at":"2024-11-14T14:19:51.585Z","updated_at":"2025-08-31T14:34:31.842Z","avatar_url":"https://github.com/artyom.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"Given you have AWS SQS setup that routes bounce notifications to SNS topic,\nbouncehandler can be used as a http endpoint subscriber for this SNS topic.\nThis program can run custom MySQL queries for received bounces to mark bad\nemails in database.\n\n\n\tUsage of bouncehandler:\n\t  -addr string\n\t\taddress to listen at (default \"localhost:8080\")\n\t  -config string\n\t\tconfiguration file (default \"mapping.json\")\n\t  -pass string\n\t\tbasic auth password\n\t  -user string\n\t\tbasic auth user\n\n\tConfiguration file should be in json format, it is a mapping between sender\n\temails and objects with two fields:\n\n\tdsn — MySQL Data Source Name in the following format:\n\n\t\t[username[:password]@][protocol[(address)]]/dbname\n\n\tsql — MySQL query with single ? placeholder that will be replaced by recipient's\n\temail from the bounce notification.\n\n\tExample:\n\n\t{\n\t\t\"news@example.com\": {\n\t\t\t\"dsn\": \"user:password@tcp(192.168.0.1:3306)/news\",\n\t\t\t\"sql\": \"delete from subscribers where email=?\"\n\t\t},\n\t\t\"notifications@example.com\": {\n\t\t\t\"dsn\": \"user:password@tcp(192.168.0.1:3306)/forum\",\n\t\t\t\"sql\": \"update users set notify=0 where email=?\"\n\t\t}\n\t}\n\n\tYou may also optionally have one \"catch-all\" record in a mapping with key value\n\t\"*\": it would be used if sender listed in bounce notification did not match any\n\tother records.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fartyom%2Fbouncehandler","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fartyom%2Fbouncehandler","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fartyom%2Fbouncehandler/lists"}