r/macapps • • Nov 12 '17

📬 Script for Mail on macOS that automatically unsubscribes from promotional emails and newsletter.

https://github.com/gvinciguerra/unlister
46 Upvotes

9 comments sorted by

3

u/tristinDLC Nov 12 '17

I use Spark over Mail. Any way to support other mail clients (as I know Thunderbird is popular too)?

I can submit a GH issue if it's easier to track.

3

u/[deleted] Nov 13 '17

Unfortunately, Spark 1.5.3 isn't scriptable. But we can ask the developers of Spark to add scriptability ;)

2

u/tristinDLC Nov 13 '17

I just replied to you on GH haha

2

u/cchderek Nov 13 '17

Is it possible to automate it to run everyday? I know nothing about scheduling and programming on mac. Thanks!

2

u/[deleted] Nov 14 '17

You can automate the execution of scripts as explained here.

This will not work with Unlister though. Unlister requires user interaction to choose which email to unsubscribe from. I can rewrite the script to run automatically without user interaction, but I think it's not a good idea (what if an important newsletter is classified by Mail as junk and Unlister unsubscribes from it?).

1

u/solrflow Nov 20 '17

is there a way to get this script to scan my inbox? (Sorry, i don't know how the script works..and naively changing junk mailbox to inbox didn't work)

1

u/[deleted] Nov 20 '17

Yes, you should change the two occurrences of "junk mailbox" to "inbox" in the script. Then, if you get the error "List is empty", it's because there are no mails with List-Unsubscribe in your header.

1

u/therocksome Dec 11 '17

Does this work in airmail

1

u/[deleted] Dec 12 '17

Unfortunately the current version of AirMail doesn't have the scripting capabilities needed to run Unlister.