Big Brother tells me that Mark Weinem wrote:
> On Wed, 25 Oct 2000, Jack McKinney wrote:
>
> > cd Maildir;
> > find . -type f | xargs fgrep -l searchstring
>
> Wow, what a comfortable search tool ;-)
For those who remember reading news this way, I thought you'd appreciate
it. Sometimes simple solutions are best. If one is using zsh, one could
try this:
mutt -f <(cat $(find . -type f | xargs fgrep -l searchstring)). This might
not work due to the missing 'From ' line, but that can always be added:
mutt -f <(for i in $(find . -type f | xargs fgrep -l searchstring) ; do ; grep '^From:
' $i | head -1 | sed s/From:/From/ ; cat $i ; echo ; done)
If one is using a lesser shell, something like this might work:
for i in `find . -type f | xargs fgrep -l searchstring` ; do mutt -f $i ; done
None of these are tested, BTW.
I have been meaning to patch the mailindex package I posted about earlier
to process maildirs (it would be a lot easier to write than the way it is
currently written, which has to parse mailboxes).
--
"Restore your inalienable human rights. Jack McKinney
Vote Libertarian. http://www.lp.org http://www.lorentz.com
http://www.harrybrowne2000.org [EMAIL PROTECTED]
1024D/D68F2C07 4096g/38AEF076
PGP signature