unsubscribe-gmail
unsubscribe-gmail copied to clipboard
Bug report
Just a couple of fixes for the script:
Messages aren't found if already in spam "folder".
The hyperlink formula is incorrect when using some locales (;
instead of ,
as formula separator.)
function doGmail() {
// ...
var threads = GmailApp.search(`label:${label} in:all`);
// ...
var hyperlink = '=HYPERLINK("#LINK#"; "View")'; // ; is universal apparently and will be converted when needed https://stackoverflow.com/a/61283851/2124535
Do you enter your label or email address here in step 2?
https://a.cl.ly/YEuBkEDp
I did. The issue is how GMail filtering works. The repro for the bug is quite simple.
- Label an email that's tagged as spam.
- Try using
label:REPLACE_WITH_LABEL_NAME
Email won't be displayed in search results
Try using label:REPLACE_WITH_LABEL_NAME in:all
instead
Applied this to my local version of the script and it worked great, thanks!