Re: moving the config into the database [was: Re: [PATCH] Display extra headers for emacs-mua - db config option]

2019-12-11 Thread David Bremner
David Edmondson writes: > It seems that only “notmuch new” is currently prepared to create a new > database, but it will also import all of my email before I have a chance > to set the above parameters. > > It seems that the obvious answer is “notmuch config” will create a > database if

Re: moving the config into the database [was: Re: [PATCH] Display extra headers for emacs-mua - db config option]

2019-12-11 Thread David Edmondson
On Tuesday, 2019-12-10 at 08:11:56 -08, Jameson Graef Rollins wrote: > Fwiw I support dkg's idea to store the config in the database itself. I > think that's a clean simplification that makes a lot of sense. I'm not inherently against this, but I'm unsure exactly how it would work. For

Re: script to move messages according to tags

2019-12-11 Thread Örjan Ekeberg
Alan Schmitt writes: > Has someone written such a script that I could copy and > adapt? > > My use cases are: > - find files with a deleted flag not in the Trash and move them to > the > Trash > - find files with an archive flag in my active mail store and move > them > to my local mail

Re: script to move messages according to tags

2019-12-11 Thread Alan Schmitt
On 2019-12-11 16:33, David Edmondson writes: How you decide to deal with multiple results is really up to you - in my case I move/delete all of them (except that I don't actually delete anything). This is probably the key: I'm used to file-based MUA that will show me duplicates. If

Re: moving the config into the database [was: Re: [PATCH] Display extra headers for emacs-mua - db config option]

2019-12-11 Thread David Edmondson
On Wednesday, 2019-12-11 at 10:00:07 -04, David Bremner wrote: > David Edmondson writes: > >> It seems that only “notmuch new” is currently prepared to create a new >> database, but it will also import all of my email before I have a chance >> to set the above parameters. >> >> It seems that the

Re: script to move messages according to tags

2019-12-11 Thread David Edmondson
On Wednesday, 2019-12-11 at 16:28:20 +01, Alan Schmitt wrote: > I do have one small question: how do you deal with mails that have > duplicates? For instance, when I send a mail to a mailing list, I end > up with both the sent email and the one I later receive from the > list. If I tag the send

Re: moving the config into the database [was: Re: [PATCH] Display extra headers for emacs-mua - db config option]

2019-12-11 Thread Daniel Kahn Gillmor
On Tue 2019-12-10 09:46:14 -0300, Jorge P. de Morais Neto wrote: > I hope you don't mind my insistence Insistence is fine -- it sounds like you have a real need for your backup/sync strategy, and if we can figure out a way to support it, that would be good. perhaps we should talk about different

Re: script to move messages according to tags

2019-12-11 Thread Alan Schmitt
Hello Örjan, On 2019-12-11 13:58, Örjan Ekeberg writes: Below is the script that I use which does more-or-less what you are asking for. Thank you very much, this is most helpful. I do have one small question: how do you deal with mails that have duplicates? For instance, when I send a

Re: script to move messages according to tags

2019-12-11 Thread Carl Worth
Yes, Notmuch considers any email files with the same message-id header as being the same message so won't show you multiple versions of the same email, (unless you're specifically asking for it to with something like --output=files). In normal usage I never worry about the duplicates I get from