{"id":15649932,"url":"https://github.com/book/mail2tweet","last_synced_at":"2025-03-30T00:13:40.709Z","repository":{"id":1637985,"uuid":"2362540","full_name":"book/mail2tweet","owner":"book","description":"Tweet the subject and first URL of an email","archived":false,"fork":false,"pushed_at":"2020-04-11T23:49:09.000Z","size":22,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-02-05T01:45:20.307Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Perl","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/book.png","metadata":{"files":{"readme":"README","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2011-09-10T20:46:50.000Z","updated_at":"2020-04-11T23:49:12.000Z","dependencies_parsed_at":"2022-07-25T21:48:29.778Z","dependency_job_id":null,"html_url":"https://github.com/book/mail2tweet","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/book%2Fmail2tweet","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/book%2Fmail2tweet/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/book%2Fmail2tweet/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/book%2Fmail2tweet/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/book","download_url":"https://codeload.github.com/book/mail2tweet/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246258871,"owners_count":20748573,"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":[],"created_at":"2024-10-03T12:32:37.221Z","updated_at":"2025-03-30T00:13:40.692Z","avatar_url":"https://github.com/book.png","language":"Perl","funding_links":[],"categories":[],"sub_categories":[],"readme":"I'm subscribed to a mailing-list were people send interesting articles,\nusually as a link followed by the full text (for archival, as URL tend\nto become obsolete over time).\n\nThe link are interesting enough that they could be shared with more\npeople. Enters Twitter. I want to tweet a summary of the emails:\nsimply the subject line and the first URL in the body.\n\nmail2tweet gets the oldest email matching the given criteria,\nand tweets subject and first link from an email on stdin.\n\nThe YAML config files hold the credentials, \"last email tweeted\",\nand content-munging information.\n\n    # example use in a crontab\n    */5 * * * * mail2tweet --config config.yml\n\n    # example config.yml\n    cleanup:\n      subject:\n        - '\\[Sylvester\\] *'\n        - '^(?:(?i:Fwd|Re): *)*'\n      body:\n        - 'https?://(?:\\S+\\.)?example.(?:biz|com|net)'\n        - '#!/'\n    imap:\n      password: puttytat\n      port: 993\n      server: imap.example.com\n      ssl: 1\n      uid: 1\n      user: tweety.bird\n    mail:\n      folder: INBOX.lists.sylvester\n      last: 1326892229\n      search:\n        - HEADER\n        - x-list\n        - funny_link\n    seen_file: seen_url.yml\n    sender_map:\n      sylvester@example.com: puttytat\n      granny@example.com: grandma\n    twitter:\n      access_token: 97fo59774-Gy9e4fl2p5PjRHnbdheDrcJJN2DVlAqTSQTX1zgS\n      access_token_secret: ENlqvrDcjdSQI4xm2TbTrg9mKysQbe002aurvg37kj\n      consumer_key: xvRaJ0bNmlD6Tnz5bfSJR\n      consumer_secret: cOZpoTxk7sP3H2VZm4mr7iRrdWfItIIuBv5y03amu\n      tags:\n        - hector\n        - granny\n        - sylvester\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbook%2Fmail2tweet","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbook%2Fmail2tweet","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbook%2Fmail2tweet/lists"}