Re: Searching in multiple mailboxes

2000-10-25 Thread Jack McKinney

Big Brother tells me that Mark Weinem wrote:
 On Mon, 23 Oct 2000, Benjamin Korvemaker wrote:
 
  See "grepm" and "grepmail"
 
 But are there no tools for Maildirs?

cd Maildir;
find . -type f | xargs fgrep -l searchstring

--
"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


Re: Searching in multiple mailboxes

2000-10-25 Thread Mark Weinem

On Wed, 25 Oct 2000, Suresh Ramasubramanian wrote:

 I believe grepmail does maildirs rather well.

man grepmail:

"[...] Mailboxes must be traditional, UNIX /bin/mail mailbox
format [...]"

Ciao,
Mark




Re: Searching in multiple mailboxes

2000-10-25 Thread Mark Weinem

On Wed, 25 Oct 2000, Jack McKinney wrote:

 cd Maildir;
 find . -type f | xargs fgrep -l searchstring

Wow, what a comfortable search tool ;-)

Ciao,
Mark


 PGP signature


Re: Searching in multiple mailboxes

2000-10-25 Thread Rich Lafferty

On Wed, Oct 25, 2000 at 07:46:33PM +0200, Mark Weinem ([EMAIL PROTECTED]) 
wrote:
 On Wed, 25 Oct 2000, Suresh Ramasubramanian wrote:
 
  I believe grepmail does maildirs rather well.
 
 man grepmail:
 
 "[...] Mailboxes must be traditional, UNIX /bin/mail mailbox
 format [...]"

Maybe I'm confused as to what maildir-format comprises, but wouldn't
one search maildirs with plain old 'grep'? 

  -Rich

-- 
-- Rich Lafferty ---
 Sysadmin/Programmer, Instructional and Information Technology Services
   Concordia University, Montreal, QC (514) 848-7625
- [EMAIL PROTECTED] --



Re: Searching in multiple mailboxes

2000-10-25 Thread Jack McKinney

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


Re: Searching in multiple mailboxes

2000-10-24 Thread Mark Weinem

On Mon, 23 Oct 2000, Benjamin Korvemaker wrote:

 See "grepm" and "grepmail"

But are there no tools for Maildirs?


Ciao,
Mark


 PGP signature


Re: Searching in multiple mailboxes

2000-10-24 Thread Suresh Ramasubramanian

Mark Weinem proclaimed on mutt-users that: 

 On Mon, 23 Oct 2000, Benjamin Korvemaker wrote:
 
  See "grepm" and "grepmail"
 
 But are there no tools for Maildirs?

I believe grepmail does maildirs rather well.

-- 
Suresh Ramasubramanian + Wallopus Malletus Indigenensis
mallet @ cluestick.org + Lumber Cartel of India, tinlcI
I never met a piece of chocolate I didn't like.



Re: Searching in multiple mailboxes

2000-10-23 Thread Jack McKinney

Big Brother tells me that Wouter Verheijen wrote:
 There is something that would be nice to have in Mutt:
 Searching in multiple (or all) mailboxes.
 Imagine this scenario: You are looking for a specified text
 in every message you have. It is only possible to search one
 mailbox, so this might be handy.

   Not as easy as one would hope.  This could be VERY slow, depending on
how much mail you have (I currently have 192MB, AFTER compression).

   A better solution is to index your mail.  I wrote a perl/MySQL package
to handle this a while back.  It has a couple of bugs that still need to
be worked out when I get a chance:

 http://www.lorentz.com/mailindex.tar.gz

--
"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


Re: Searching in multiple mailboxes

2000-10-23 Thread Benjamin Korvemaker

On Mon, Oct 23, 2000 at 08:58:06PM +0200, Wouter Verheijen wrote:
 There is something that would be nice to have in Mutt:
 Searching in multiple (or all) mailboxes.
 Imagine this scenario: You are looking for a specified text
 in every message you have. It is only possible to search one
 mailbox, so this might be handy.

See "grepm" and "grepmail"

http://privat.schlund.de/b/barsnick/sw/grepm.html
http://grepmail.sourceforge.net/
-- 
Benjamin KorvemakerDonkeys kill more people
[EMAIL PROTECTED]  annually than plane crashes.

 PGP signature