Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/book/mail2tweet
Tweet the subject and first URL of an email
https://github.com/book/mail2tweet
Last synced: about 1 month ago
JSON representation
Tweet the subject and first URL of an email
- Host: GitHub
- URL: https://github.com/book/mail2tweet
- Owner: book
- Created: 2011-09-10T20:46:50.000Z (over 13 years ago)
- Default Branch: master
- Last Pushed: 2020-04-11T23:49:09.000Z (almost 5 years ago)
- Last Synced: 2024-10-03T12:36:54.170Z (4 months ago)
- Language: Perl
- Homepage:
- Size: 21.5 KB
- Stars: 4
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README
Awesome Lists containing this project
README
I'm subscribed to a mailing-list were people send interesting articles,
usually as a link followed by the full text (for archival, as URL tend
to become obsolete over time).The link are interesting enough that they could be shared with more
people. Enters Twitter. I want to tweet a summary of the emails:
simply the subject line and the first URL in the body.mail2tweet gets the oldest email matching the given criteria,
and tweets subject and first link from an email on stdin.The YAML config files hold the credentials, "last email tweeted",
and content-munging information.# example use in a crontab
*/5 * * * * mail2tweet --config config.yml# example config.yml
cleanup:
subject:
- '\[Sylvester\] *'
- '^(?:(?i:Fwd|Re): *)*'
body:
- 'https?://(?:\S+\.)?example.(?:biz|com|net)'
- '#!/'
imap:
password: puttytat
port: 993
server: imap.example.com
ssl: 1
uid: 1
user: tweety.bird
mail:
folder: INBOX.lists.sylvester
last: 1326892229
search:
- HEADER
- x-list
- funny_link
seen_file: seen_url.yml
sender_map:
[email protected]: puttytat
[email protected]: grandma
twitter:
access_token: 97fo59774-Gy9e4fl2p5PjRHnbdheDrcJJN2DVlAqTSQTX1zgS
access_token_secret: ENlqvrDcjdSQI4xm2TbTrg9mKysQbe002aurvg37kj
consumer_key: xvRaJ0bNmlD6Tnz5bfSJR
consumer_secret: cOZpoTxk7sP3H2VZm4mr7iRrdWfItIIuBv5y03amu
tags:
- hector
- granny
- sylvester