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

Is it possible to use a regex in --ignore-tags-local ? #263

Open
Tryphan opened this issue Nov 17, 2023 · 1 comment
Open

Is it possible to use a regex in --ignore-tags-local ? #263

Tryphan opened this issue Nov 17, 2023 · 1 comment

Comments

@Tryphan
Copy link

Tryphan commented Nov 17, 2023

I'm attempting to setup a system of putting messages to sleep (along the lines of this post: https://eshapard.github.io/python/put-not-much-emails-to-sleep.html). My local tags are in the format then of sleep[0-9][mwd] or sleep[yyyymmdd] (i.e. sleep1d, sleep2w, sleep20231225, sleep20240114). I would like these tags to remain local only and not sent to Gmail (as there will be an ever-increasing number of new labels created).

Setting up a saved search in emacs/notmuch using "tag:/^sleep[0-9]+[mwd]*$/ " works as desired, but I'd like to stop pushing these labels to Gmail.

I've tried --ignore-local-labels="/^sleep[0-9]+[mwd]$/ " as well as "/sleep[0-9]+[mwd]/"

Is this possible in the current code or is this a user error?

@gauteh
Copy link
Owner

gauteh commented Nov 17, 2023

No, that should probably be a separate option.

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

No branches or pull requests

2 participants