On 2018-02-02 21:42, Felix Miata wrote:
Linda Walsh composed on 2018-02-02 12:29 (UTC-0800):
I suppose no one else really does a quick search through all their email this way any more.
I do such searching with mc or filecommander, which is largely why I still use POP.
I also do with 'mc', no matter if I used pop3 or imap to retrieve the posts. But in the past I remember using grepmail or mailgrep - I'm unsure of the exact name. It would generate another mbox file with the hits, IIRC. Right, I just found old notes: cd Mail grepmail -b -i -M -m -R -u -e "RBL" file/* > busqueda grepmail -b -i -M -m -R -u -e "griego" busqueda > busqueda_paso2 grepmail -b -i -M -m -R -u -e "greek" busqueda >> busqueda_paso2 grepmail -h -m -R -e "mail.id@host" lists/* > busqueda Notice that the mbox "busqueda" (search in Spanish) can itself fall in the search recursively with nasty results. -b Asserts that the pattern must match in the body of the email. (Not compatible with -B.) -B Asserts that the pattern must match in the body of the email, but not the signature. The signature consists of everything after a line consisting of "-- ". (Not compatible with -b.) -i Make the search case-insensitive (by analogy to grep -i). -M Causes grepmail to ignore non-text MIME attachments. This removes false positives resulting from binaries encoded as ASCII attachments. -m Append "X-Mailfolder: <folder>" to all email headers, indicating which folder contained the matched email. -R Causes grepmail to recurse any directories encountered. -u Output only unique emails, by analogy to sort -u. Grepmail determines email uniqueness by the Message-ID header. -e Explicitly specify the search pattern. This is useful for specifying patterns that begin with "-", which would otherwise be interpreted as a flag. -h Asserts that the pattern must match in the header of the email. I don't remember now why I stopped using it. Perhaps because Thunderbird can search in several folders. -- Cheers / Saludos, Carlos E. R. (from 42.3 x86_64 "Malachite" (Minas Tirith))