Re: pretty-print mutt emails

2021-11-30 Thread Cameron Simpson
On 24Nov2021 20:21, Jean Louis wrote: >When using grep, I think `grep -m1' should be used to find the first >match, as I wonder what would be the result if words like "From:" or >"Date: " are found in the body of the email, not only in the header. I tend to use sed for this. A simple: /^$/q

Re: Search program that can find an E-Mail with an exact Date: match

2021-11-30 Thread Chris Green
On Tue, Nov 30, 2021 at 10:24:10AM -0500, John Hawkinson wrote: > I find this discussion a bit…surprising? It seems like "mboxgrep" > (https://datatipp.se/mboxgrep/) > does this just fine. E.g. > > mboxgrep -rH -m maildir 'Date: Sun, 17 Mar 2019 21:24:26 -0700' dir > > recursively searches

Re: Search program that can find an E-Mail with an exact Date: match

2021-11-30 Thread John Hawkinson
I find this discussion a bit…surprising? It seems like "mboxgrep" (https://datatipp.se/mboxgrep/) does this just fine. E.g. mboxgrep -rH -m maildir 'Date: Sun, 17 Mar 2019 21:24:26 -0700' dir recursively searches the headers of all mailboxes within 'dir' for the pattern specified. I don't

Re: Search program that can find an E-Mail with an exact Date: match

2021-11-30 Thread Bhaskar Chowdhury
Well, you might give it a shot a program called "Notmuch" or "Mu" ...both are mail indexer and search . Importantly , they have machanism to integrate with most of the editors. Thanks, Bhaskar Chris Green writes: I'm looking for a way to find (and display) an E-Mail when I know the exact

Re: Search program that can find an E-Mail with an exact Date: match

2021-11-30 Thread Chris Green
On Tue, Nov 30, 2021 at 11:20:10AM +0100, Bastian wrote: > On 29Nov21 17:36+, Chris Green wrote: > > On Mon, Nov 29, 2021 at 09:45:17AM -0500, Ofer Inbar wrote: > > But does it do it recursively down a hierarchy of folders? That's > > what I need. > > Afaik, no. Mutt search/limits work on

Re: Search program that can find an E-Mail with an exact Date: match

2021-11-30 Thread Bastian
On 29Nov21 17:36+, Chris Green wrote: > On Mon, Nov 29, 2021 at 09:45:17AM -0500, Ofer Inbar wrote: > But does it do it recursively down a hierarchy of folders? That's > what I need. Afaik, no. Mutt search/limits work on the current opened mailbox. What you are trying to achieve is from my