Closed johanholmerin closed 3 years ago
This looks great! Thanks for your contribution. I’ll review it in detail and deploy it soon.
In the meanwhile, can you please add some tests?
Oh, and also something to delete stuff from static/alternate/
when removing old entries? Otherwise these files will just pile up and take up all the storage space…
How's this?
Thank you very much for the pull request 😃
I’m checking in to tell you that I’m working on it and will merge it soon. I’m doing things such as refactoring the code to remove repeated logic between adding the first entry to the feed (the one that says “You Inbox was Created”) and the other entries as emails arrive. I’m also going to change the tests to use JSDOM as you did instead of regular expressions like I had. Your idea is much better.
Your contribution was merged and deployed to https://www.kill-the-newsletter.com. Thanks.
You may interested in reading https://github.com/leafac/www.kill-the-newsletter.com/commit/80ae8fab52b38b7d76a79edab3f58b455c79b436, which are the changes I made before merging. Here are the highlights:
non-existent@kill-the-newsletter.com
are considered spam and are silently ignored.Great. I checked it with a newsletter and it seems to be working. Thank you.
When using Kill the Newsletter with IFTTT and Instapaper, the alternate link is always used, which leads to the wrong content being saved. This adds support for saving and viewing the original email content.