Re: grepmail problem (resend)

Robert Holtzman <[email protected]> Fri, 23 Jan 2009 11:32:03 -0700 (MST)
Newsgroups gmane.mail.grepmail.general
Message-ID <alpine.DEB.2.00.0901231053140.29176@localhost>
On Fri, 23 Jan 2009, Dan Pritts wrote:

> The syntax you are using searches the file saved-mutt
> for the string mutt.
>
> You probably want something like
>
> grepmail -b mutt /var/spool/mail/holtzman > saved-mutt
>
> Substitute the actual location of your inbox folder for the /var/spool/mail
> file i mention.

That's a little confusing because one of the examples in the man page is

grepmail -hb "Pilot" saved-mail*

which would apply to me except I am only searching the bodies of the 
emails.

Taking your advice:

[holtzm@localhost]~$ grepmail -b mutt /home/holtzm/mail > saved-mutt
grepmail: Skipping directory: '/home/holtzm/mail'

and

grepmail -b mutt /home/holtzm/mail/INCOMING > saved-mutt

Success, but does this mean I have to know what mailbox the search 
subject is in before I search? I was under the impression the entire 
contents of the /mail directory would be searched. Could you please 
clarify this?

Thanks for the reply and a great app.

-- 
Bob Holtzman
"If you think you're getting free lunch,
  check the price of the beer"

------------------------------------------------------------------------------
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword