Re: Editing the raw mail file?

2024-07-10 Thread David Bremner
Morten Kjeldgaard writes: > I would love to have just one function that carries out both tasks, > opening the file in a temporary buffer, and after you finish with C-c > C-c, it automatically does the reindexing for you. Unfortunately it's > above my current Elisp skills to write this. > Maybe so

Re: Editing the raw mail file?

2024-07-10 Thread Morten Kjeldgaard
David Bremner wrote: > you can use "c F" to copy the file name of the current message into the > the kill ring, then just yank wherever useful (e.g. to visit the file in > emacs). > > After editing you will need to reindex that file. One way would be > to use "c i" to copy the message id into the

Re: Editing the raw mail file?

2024-07-09 Thread David Bremner
Morten Kjeldgaard writes: > > It's tedious to use the notmuch CLI client to search for the mail and > then copy/paste the filename, and edit it to correct the date. It would > be so much easier if it were possible to edit the raw file directly in > Emacs. I can use 'V' to view the raw file, and t

Editing the raw mail file?

2024-07-09 Thread Morten Kjeldgaard
Hi, I have ported all om my mail since 1991 into notmuch and I am thrilled that I can now organize and easily see everything I have been doing for the last 30+ years. However, some of the mail messages have wrong information in the RFC822 header, probably because of bad mail delivery agents that w