<<< Date Index >>>     <<< Thread Index >>>

Re: mutt in command-line mode



On Thu, Jun 24, 2004 at 11:42:41AM -0700, Roy S. Rapoport wrote:
> I keep weekly archives of all my incoming mail.
> Occasionally I have need to find mail from a given user.
> 
> Today, the process is:
> A) for file in `grep $username *.archive | sed 's/:.*//' | sort -u`; do 
>       cat $file >>! /tmp/someFile
>    done

The grep/sed/sort could be replaced with "grep -l" (return the filenames
only).  Faster, too, since it doesn't have to read through to the end of
every file when it finds a match.  And actually the grep/sed probably
won't work if there is only one file..

No help on the mutt question tho :-)

mm