Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!zaphod.mps.ohio-state.edu!tut.cis.ohio-state.edu!ucbvax!THUMPER.BELLCORE.COM!nsb From: nsb@THUMPER.BELLCORE.COM (Nathaniel Borenstein) Newsgroups: comp.soft-sys.andrew Subject: Re: Searching across message folders in AMS Message-ID: Date: 20 Mar 91 15:06:54 GMT References: Sender: daemon@ucbvax.BERKELEY.EDU Organization: The Internet Lines: 26 Excerpts from internet.info-andrew: 19-Mar-91 Searching across message fo.. P. Halvorsen@parc.xerox. (154) > Is there a utility which makes it simpler to search across message > folders for header information or text in the body of messages? A special utility -- No. A general utility -- Yes, sort of. It is called "grep". To use it to search for caption information, e.g. for the word "foobar" in the caption of all messages in folder "foo": cd ~/.MESSAGES/foo strings .MS_MsgDir | grep foobar You could write a simple shell script to do this in all your folders, possibly using find. Similarly, to search through all the bodies in a folder: cd ~/.MESSAGES/foo grep foobar * And, again, a shell script or "find" command could do this across folders. I know that's not what you were hoping for, but reality isn't always pretty.... -- Nathaniel