Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug report #4

Closed
wants to merge 1 commit into from
Closed

Bug report #4

wants to merge 1 commit into from

Conversation

bre7
Copy link

@bre7 bre7 commented Nov 22, 2021

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

@mimedico
Copy link

Do you enter your label or email address here in step 2?

https://a.cl.ly/YEuBkEDp

@bre7
Copy link
Author

bre7 commented Jan 31, 2022

I did. The issue is how GMail filtering works.
The repro for the bug is quite simple.

  1. Label an email that's tagged as spam.
  2. 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

@RainofTerra
Copy link

Applied this to my local version of the script and it worked great, thanks!

@labnol labnol closed this Aug 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants