On Mon 10-Dec-2001 at 08:04:17PM +0100, Peter Poeml wrote:
> 
> Sadly grepmail only works on mbox mail boxes, not with mails stored in
> maildirs. You should be able to at least gather the matching mail files
> with find:
> 
> egrep -l "^From.*frob@(foo|bar).net" {maildir1,maildir2,maildir3}/*/* \
>       | xargs grep -l "Sep 2000"
> 
> But I'm wondering how to feed that into mutt...

Just create a temporary maildir for your search results and create
linked files in there.  Something like this (completely untested, don't
blame me if it spills your coffee):

# mkdir results results/{cur,new,tmp}
# egrep -l "^From.*frob@(foo|bar).net" {maildir1,maildir2,maildir3}/*/* \
#     | xargs grep -l "Sep 2000" \
#     | while read file ; do
#     ln $file results/cur/
#     done
# mutt -f results

Note that you can create as many of these 'results' Maildir's as you like
without using up (much) disc space.

-- 
Bruno

Reply via email to