On Tue Nov30'21 04:00:08PM, Chris Green wrote: > From: Chris Green <c...@isbd.net> > Date: Tue, 30 Nov 2021 16:00:08 +0000 > To: mutt-users@mutt.org > Subject: Re: Search program that can find an E-Mail with an exact Date: > match > > 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 the headers of all mailboxes within 'dir' for the > > pattern specified. I don't know that "-m maildir" is necessary, but it > > works. > > I installed and tried mboxgrep, it failed miserably on my 'real' > maildir hierarchy. It probably was tested (and works) on a maildir++ > hierarchy that is all at one level with long rows of .... indicating > the 'depth'. >
Interesting, the webpage claims to work for maildir, etc. However, I was unable to compile the software on Fedora. I could not also find any installation instructions/readme on it. One problem is that it appears to be a 2003 software on sourceforge, despite the "new" website, circa 2020. I tried: $ ./configure checking for gcc... gcc checking for C compiler default output... a.out checking whether the C compiler works... yes checking whether we are cross compiling... no checking for suffix of executables... checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ANSI C... none needed checking for a BSD-compatible install... /bin/install -c checking how to run the C preprocessor... gcc -E checking for egrep... grep -E checking for ANSI C header files... yes checking for dirent.h that defines DIR... yes checking for library containing opendir... none required checking for pcre-config... /bin/pcre-config checking for gzopen in -lz... yes checking for BZ2_bzopen in -lbz2... yes checking for like_monday in -lgarfield... no checking for fcntl... yes checking for flock... yes checking for regcomp... yes checking for strptime... yes checking for ftw... yes checking for fts_open... yes configure: creating ./config.status config.status: creating Makefile config.status: creating doc/Makefile config.status: creating src/Makefile config.status: creating src/config.h $ make cd src; make make[1]: Entering directory '/home/maitra/Downloads/mboxgrep-0.7.9/src' gcc -g -O2 -o mboxgrep info.o main.o mh.o scan.o maildir.o mbox.o misc.o wrap.o getopt.o getopt1.o md5.o -lbz2 -lz -lpcre /bin/ld: main.o:/home/maitra/Downloads/mboxgrep-0.7.9/src/mboxgrep.h:132: multiple definition of `config'; info.o:/home/maitra/Downloads/mboxgrep-0.7.9/src/mboxgrep.h:132: first defined here /bin/ld: mh.o:/home/maitra/Downloads/mboxgrep-0.7.9/src/mboxgrep.h:132: multiple definition of `config'; info.o:/home/maitra/Downloads/mboxgrep-0.7.9/src/mboxgrep.h:132: first defined here /bin/ld: scan.o:/home/maitra/Downloads/mboxgrep-0.7.9/src/mboxgrep.h:132: multiple definition of `config'; info.o:/home/maitra/Downloads/mboxgrep-0.7.9/src/mboxgrep.h:132: first defined here /bin/ld: maildir.o:/home/maitra/Downloads/mboxgrep-0.7.9/src/mboxgrep.h:132: multiple definition of `config'; info.o:/home/maitra/Downloads/mboxgrep-0.7.9/src/mboxgrep.h:132: first defined here /bin/ld: mbox.o:/home/maitra/Downloads/mboxgrep-0.7.9/src/mboxgrep.h:132: multiple definition of `config'; info.o:/home/maitra/Downloads/mboxgrep-0.7.9/src/mboxgrep.h:132: first defined here /bin/ld: misc.o:/home/maitra/Downloads/mboxgrep-0.7.9/src/mboxgrep.h:132: multiple definition of `config'; info.o:/home/maitra/Downloads/mboxgrep-0.7.9/src/mboxgrep.h:132: first defined here /bin/ld: wrap.o:/home/maitra/Downloads/mboxgrep-0.7.9/src/mboxgrep.h:132: multiple definition of `config'; info.o:/home/maitra/Downloads/mboxgrep-0.7.9/src/mboxgrep.h:132: first defined here collect2: error: ld returned 1 exit status make[1]: *** [Makefile:42: mboxgrep] Error 1 make[1]: Leaving directory '/home/maitra/Downloads/mboxgrep-0.7.9/src' make: *** [Makefile:23: all] Error 2 It would be good to find some software like this that can go down hierarchies of maildirs, from the command line. I have found mutt's searching to be a bit frustrating. Thanks, Ranjan