gauteh / lieer

Fast email-fetching and sending and two-way tag synchronization between notmuch and GMail
http://lieer.gaute.vetsj.com
Other
494 stars 60 forks source link

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

Open Tryphan opened 6 months ago

Tryphan commented 6 months ago

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 commented 6 months ago

No, that should probably be a separate option.