Re: Create tags from folders
Reto writes: > > Out of interest, how does your workflow look like? > All based on folder queries? I don't use folders much anymore. My main searches are defined in terms of List-ID ORed with tags to sort into mailing-list-like-things (as some things I think should be part of the list are missing the List-ID header). d ___ notmuch mailing list -- notmuch@notmuchmail.org To unsubscribe send an email to notmuch-le...@notmuchmail.org
Re: Create tags from folders
On Mon, Aug 08, 2022 at 10:39:36PM -0300, David Bremner wrote: > e.g. query:python as > 'folder:reto@labrat.space/INBOX.lists.python-list' > This has the advantage that you don't have to retag when new files are > added, which is often the desired behaviour. Thanks, I do use queries for some things. I anyhow have a tagging script to do the initial tagging (also does some relatively naive spam removal, archiving of older messages, kill lists etc). Complicated queries just split the config in two then, some logic would be in the tagging script and other things in the config, which I find personally a step back rather than an improvement. Especially as I will have to archive the inboxes at one point or another, making the folder query fail (or me having to specify the archive dir in the folder query as well). Out of interest, how does your workflow look like? All based on folder queries? Greetings, Reto ___ notmuch mailing list -- notmuch@notmuchmail.org To unsubscribe send an email to notmuch-le...@notmuchmail.org
Re: Create tags from folders
Reto writes: > > Second, I let notmuch index multiple email addresses in the same store, > meaning my folder queries are then nested rather deep. > > So my lovely tag:python query amounts to `notmuch search > 'folder:reto@labrat.space/INBOX.lists.python-list'` > > Which... is a mouthful. > > Regexes aren't a solution, just makes it now two problems as I have > multiple python lists that could match ;) Just in case you didn't know, another option is define (with notmuch config) e.g. query:python as 'folder:reto@labrat.space/INBOX.lists.python-list' This has the advantage that you don't have to retag when new files are added, which is often the desired behaviour. d ___ notmuch mailing list -- notmuch@notmuchmail.org To unsubscribe send an email to notmuch-le...@notmuchmail.org
Re: Create tags from folders
On Mon, Aug 08, 2022 at 05:30:29PM +0300, Tomi Ollila wrote: > On Sun, Aug 07 2022, Notmuch mailinglist wrote: > > It is kinda duplicate information to have mail tagged with same name > as the folder it is located in... but there may be reasons one would > like to do such a thing -- and at least I am interested (at least a bit) > why. Well, for starters folders may change (say archiving those on the imap side), the semantic tags do not. Second, I let notmuch index multiple email addresses in the same store, meaning my folder queries are then nested rather deep. So my lovely tag:python query amounts to `notmuch search 'folder:reto@labrat.space/INBOX.lists.python-list'` Which... is a mouthful. Regexes aren't a solution, just makes it now two problems as I have multiple python lists that could match ;) Cheers, Reto PS: not op, but also re-tagging even though I have emails filtered to dedicated folders via sieve. ___ notmuch mailing list -- notmuch@notmuchmail.org To unsubscribe send an email to notmuch-le...@notmuchmail.org
Re: Create tags from folders
Hi, Notmuch mailinglist writes: > My email is from Protonmail and I use sieve filters to organise my mail as > needed into folders. > Mbsync creates a folder structure which mirrors what is on my proton mail > account. > But is it possible for notmuch to create tags based on the folders within my > mail directory and tagging the mails.. I have a very similar setup, and used to have custom filters for afew, but eventually replaced it with a much simpler standalone script. It’s available online at [0]. For some junk residing in my dotfiles, it’s surprisingly well documented, but if you don’t understand something just hmu. I should probably rewrite it to the new python bindings … later … --Thomas [0]: https://github.com/qsuscs/.dotfiles/blob/7aa3b36e8e43ad0e928eddb60317a77e4bedd0a1/dot.local-bin-nm--tagger ___ notmuch mailing list -- notmuch@notmuchmail.org To unsubscribe send an email to notmuch-le...@notmuchmail.org
Re: Create tags from folders
On Sun, Aug 07 2022, Notmuch mailinglist wrote: > Hello, > > I've managed to get mbsync, notmuch and neomutt all setup. But its now time > for fine tuning and tinkering. > My email is from Protonmail and I use sieve filters to organise my mail as > needed into folders. > Mbsync creates a folder structure which mirrors what is on my proton mail > account. > But is it possible for notmuch to create tags based on the folders within my > mail directory and tagging the mails.. > > Basically what I want is > "if mail in folder1 tag as folder1" > > Hope this makes sense. The question one can make based on the other reply is why tag based on folders, and just not use folder queries finding the mails in these folders. It is kinda duplicate information to have mail tagged with same name as the folder it is located in... but there may be reasons one would like to do such a thing -- and at least I am interested (at least a bit) why. Tomi ___ notmuch mailing list -- notmuch@notmuchmail.org To unsubscribe send an email to notmuch-le...@notmuchmail.org