Skip to content
Read HackerNews with your favourite mail client!
Ruby
Find file
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
mails
README.md
hn2mail.rb
mail_template.mustache
mail_template.rb

README.md

HackerNews2Mail

Everyone loves Hacker News. And everyone loves mail. So I just combined the two of them.

What does it do?

It just writes all the comments of one thread into a maildir-structured directory where you can read it with whatever you want.

For example with mutt:

hacker-news-in-mutt

What to do?

For now you have to fetch the json containing the post and comments yourself:

curl http://api.ihackernews.com/post/3657821 > comments.json

and then run the script:

ruby hn2mail.rb

What do I need for this to work?

Just two gems:

License

"THE BEER-WARE LICENSE" (Revision 42):
badboy wrote this script. As long as you retain this notice you
can do whatever you want with this stuff. If we meet some day, and you think
this stuff is worth it, you can buy me a beer in return. Jan-Erik Rediger
Something went wrong with that request. Please try again.