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

Mechanism to star message only if thread isn't already starred? #11

Open
dbarnett opened this issue Sep 10, 2019 · 3 comments · May be fixed by #69
Open

Mechanism to star message only if thread isn't already starred? #11

dbarnett opened this issue Sep 10, 2019 · 3 comments · May be fixed by #69
Labels
enhancement New feature or request

Comments

@dbarnett
Copy link
Contributor

I noticed that if I set up a rule to star a thread, it adds a star to every matching message in the thread. This is usually not the behavior I want because it drowns out some nice special handling Gmail has for starred messages in a thread (Gmail includes starred text in the preview snippet and doesn't collapse those messages in thread view).

Could there be a way to apply stars at the thread level, only if there's not already a starred message in the thread, instead of applying to every matching message?

@dbarnett dbarnett added the enhancement New feature or request label Sep 10, 2019
@ranmocy
Copy link
Owner

ranmocy commented Oct 24, 2019

That sounds reasonable. Notice that the script processes by thread, so I think it's possible to retrieve the information. But it may require some change around how action is applied.

May also worth to provide control over this behavior.
Do you think it's better to provide a global config? Or it's better to be a property of individual rules?

@dbarnett
Copy link
Contributor Author

Individual rules makes more sense to me. Just needs a little thought about how to "spell" it.

@mlsad3 mlsad3 linked a pull request Aug 6, 2022 that will close this issue
@mlsad3
Copy link
Contributor

mlsad3 commented Aug 6, 2022

This is resolved with PR #69 by doing:

(thread is_starred)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants