Re: moving mail to another maildir based on tags and renaming files

2022-05-24 Thread erik colson
David Bremner writes: > There is in fact the "notmuch dump" command. I recommend everyone who > invests (human) effort in tagging uses it regularly. The output is much > smaller than the notmuch database. awesome! thx -- erik colson ___ notmuch

Re: moving mail to another maildir based on tags and renaming files

2022-05-24 Thread David Bremner
erik colson writes: > With notmuch my idea is to bundle the subfolders in the mainfolder so > that would roughly divide the mailboxes by at least 5. With notmuch the > subfolders are definitely to be tags. I want to keep the folder for > every project to at least have some kind of fallback in

Re: moving mail to another maildir based on tags and renaming files

2022-05-24 Thread erik colson
"inwit" writes: > Yeah, that is correct. But it proved trickier than it seemed to me (thus the > safeMove2 attempt). Yes, I have seen that > I must confess that I've holding this tag/folder scheme for over a year now, > and > that I'm more and more inclined to reduce the amount of folders

Re: moving mail to another maildir based on tags and renaming files

2022-05-24 Thread inwit
On Tue May 24, 2022 at 12:01 AM CEST, erik colson wrote: > Do I understand correctly that I only have to remove the U=... part from > the filename when moving a message? That seems so easy I hardly believe > it ;) Yeah, that is correct. But it proved trickier than it seemed to me (thus the

Re: moving mail to another maildir based on tags and renaming files

2022-05-24 Thread erik colson
João Pedro writes: > Best regards (and sorry for the long mail), Hi João, Thanks for all the explanations and your config! I will tend to script, things in fish but meanwhile your code does help a lot! best -- erik colson ___ notmuch mailing list

Re: moving mail to another maildir based on tags and renaming files

2022-05-23 Thread João Pedro
On Mon, May 23 2022 23:02, erik colson wrote: > Hi, > > I would like to move mails selected by a notmuch query > (i.e. "tag:movethismailtobox-ThisBox") to *ThisBox* > I need this to somewhat still have usable access through my phone IMAP > client. What I have is tags that represent IMAP

Re: moving mail to another maildir based on tags and renaming files

2022-05-23 Thread erik colson
"inwit" writes: > If you have questions, do ask! Do I understand correctly that I only have to remove the U=... part from the filename when moving a message? That seems so easy I hardly believe it ;) best -- erik colson ___ notmuch mailing list --

Re: moving mail to another maildir based on tags and renaming files

2022-05-23 Thread inwit
On Mon May 23, 2022 at 11:02 PM CEST, erik colson wrote: > So I wanted to check if somebody else already wrote some > bash/perl/whatever script which handles this ? I did. I replicate folder and tags with this dirty script: https://paste.sr.ht/~inwit/018642e5c1cae1e57ae449006b6ed5087ae964d0 You

moving mail to another maildir based on tags and renaming files

2022-05-23 Thread erik colson
Hi, I would like to move mails selected by a notmuch query (i.e. "tag:movethismailtobox-ThisBox") to *ThisBox* I need this to somewhat still have usable access through my phone IMAP client. I am actually using afew already, but as I have 1000+ mailboxes it is unmaintainable to create the rules