Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> Set up a filter from substack to the spam folder.

Can you walk me through the steps? Gmail doesn't let you create a filter which sends to the spam box. There used to be, but it was taken away. I know because I used it a lot.

Even if the feature was still there, it was still received instead of rejected, and it only moves the offending mail to the spam box instead of deleting it.



I know the spam folder is a special folder, but I assumed you could filter to it. Apparently not. A quick search tells me that you can set up a Google script to do this[0]. I personally use the secondary spam tag method, since I don't want such messages being deleted automatically (I filter a number of marketing and other messages to my secondary spam tag, and only check those messages when I need something; in these cases I don't actually want them being deleted automatically)

``` var threads = GmailApp.search("[your search criteria] -is:spam"); for (var iThread = 0; iThread < threads.length; iThread++) { GmailApp.moveThreadToSpam(threads[iThread]); } ```

[0]: https://webapps.stackexchange.com/a/120534




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: