Re: ITP: mboxgrep -- Grep through mailboxes

2001-01-09 Thread Tollef Fog Heen
* Stephane Bortzmeyer 

| On Monday 8 January 2001, at 9 h 5, the keyboard of Tollef Fog Heen 
| [EMAIL PROTECTED] wrote:
|  
|  I intend to package mboxgrep, a utility which greps mailboxes.
| 
| BTW, we already have sgrep, which is fine for that purpose.

Does it support both simple regexps, extended regexps and Perl
regexps?

(please don't cc me on replies to the list)

-- 

Tollef Fog Heen
Unix _IS_ user friendly... It's just selective about who its friends are.




ITP: mboxgrep -- Grep through mailboxes

2001-01-08 Thread Tollef Fog Heen
Package: wnpp
Severity: normal

I intend to package mboxgrep, a utility which greps mailboxes.

Description: Grep through mailboxes
 mboxgrep is a small utility that scans either standard Unix 
 mailboxes, Gnus nnml or nnmh mailboxes, or MH mailboxes, and 
 displays messages matching a basic, extended, or 
 Perl-compatible regular expression.

It can be downloaded from
http://public.srce.hr/~dspiljar/mboxgrep.html

and is under GPL.

-- 

Tollef Fog Heen
Unix _IS_ user friendly... It's just selective about who its friends are.




Re: ITP: mboxgrep -- Grep through mailboxes

2001-01-08 Thread Stephane Bortzmeyer
On Monday 8 January 2001, at 9 h 5, the keyboard of Tollef Fog Heen 
[EMAIL PROTECTED] wrote:
 
 I intend to package mboxgrep, a utility which greps mailboxes.

BTW, we already have sgrep, which is fine for that purpose.





Re: ITP: mboxgrep -- Grep through mailboxes

2001-01-08 Thread Guido Guenther
On Mon, Jan 08, 2001 at 01:27:24PM +0100, Stephane Bortzmeyer wrote:
 On Monday 8 January 2001, at 9 h 5, the keyboard of Tollef Fog Heen 
 [EMAIL PROTECTED] wrote:
  
  I intend to package mboxgrep, a utility which greps mailboxes.
 
 BTW, we already have sgrep, which is fine for that purpose.
and grepmail...

Package: grepmail
Description: search mailboxes for mail matching an expression
 Grepmail looks for mail messages containing a pattern, and prints the
 resulting messages. It can handle compressed mailbox files, and can search
 the header or body of emails. Usage is very similar to grep.

 -- Guido




Re: ITP: mboxgrep -- Grep through mailboxes

2001-01-08 Thread Andreas Metzler
On Mon, Jan 08, 2001 at 02:32:02PM +0100, Guido Guenther wrote:
 On Mon, Jan 08, 2001 at 01:27:24PM +0100, Stephane Bortzmeyer wrote:
  On Monday 8 January 2001, at 9 h 5, the keyboard of Tollef Fog Heen 
  [EMAIL PROTECTED] wrote:
   
   I intend to package mboxgrep, a utility which greps mailboxes.
  
  BTW, we already have sgrep, which is fine for that purpose.
 and grepmail...
 
 Package: grepmail
 Description: search mailboxes for mail matching an expression
  Grepmail looks for mail messages containing a pattern, and prints the
  resulting messages. It can handle compressed mailbox files, and can search
  the header or body of emails. Usage is very similar to grep.

Hello!
... which afaik only understands (zipped) mbox-format. Of course you
can use something like
find ~/mail -type f | xargs grepmail pattern,
for Maildir (or mh).
  cu andreas




Re: ITP: mboxgrep -- Grep through mailboxes

2001-01-08 Thread Aaron Lehmann
 Package: grepmail
 Description: search mailboxes for mail matching an expression
  Grepmail looks for mail messages containing a pattern, and prints the
  resulting messages. It can handle compressed mailbox files, and can search
  the header or body of emails. Usage is very similar to grep.

Grepmail is very slow, and I wouldn't mind an alternative. I blame the
slowness on perl.

$ time grepmail test /dev/null
grepmail test /dev/null  0.38s user 0.04s system 100% cpu 0.418 total

Add that to the fact that perl has a 400ms overhead just to load when
not cached in RAM on my system. Perl had just been run at the time of
this test to gather this figure, but usually on the machine in
question it is not cached.

What this means is grepmail takes almost a second to start up. I won't
even go into its grepping speed.


pgpEVsDjZhbgD.pgp
Description: PGP signature


Re: ITP: mboxgrep -- Grep through mailboxes

2001-01-08 Thread John Galt

I guess that Raul WAS right when he told me there *IS* only one way to do
it...

On Mon, 8 Jan 2001, Stephane Bortzmeyer wrote:

SBOn Monday 8 January 2001, at 9 h 5, the keyboard of Tollef Fog Heen 
SB[EMAIL PROTECTED] wrote:
SB 
SB I intend to package mboxgrep, a utility which greps mailboxes.
SB
SBBTW, we already have sgrep, which is fine for that purpose.
SB
SB
SB
SB

-- 
Pardon me, but you have obviously mistaken me for someone who gives a
damn.
email [EMAIL PROTECTED]




Re: ITP: mboxgrep -- Grep through mailboxes

2001-01-08 Thread Joey Hess
Aaron Lehmann wrote:
 What this means is grepmail takes almost a second to start up. I won't
 even go into its grepping speed.

Balderdash:

[EMAIL PROTECTED]:~time grepmail foo /dev/null
0.29user 0.01system 0:00.29elapsed 100%CPU (0avgtext+0avgdata 0maxresident)k

(P-II 300)

Anyhow, if this new package has the same functionality as grepmail (in
particular, if it supports things like 'grepmail -d '1 week ago'), I
might consider dropping the grepmail package for it.

-- 
see shy jo




Re: ITP: mboxgrep -- Grep through mailboxes

2001-01-08 Thread Aaron Lehmann
On Mon, Jan 08, 2001 at 03:49:01PM -0800, Joey Hess wrote:
 Balderdash:
 
 [EMAIL PROTECTED]:~time grepmail foo /dev/null
 0.29user 0.01system 0:00.29elapsed 100%CPU (0avgtext+0avgdata 0maxresident)k

First time:
$ time grepmail foo /dev/null
grepmail foo /dev/null  0.36s user 0.05s system 39% cpu 1.047 total

Second time:
grepmail foo /dev/null  0.41s user 0.01s system 101% cpu 0.413 total

(K6-2/350)

Want to trade hard drives?


pgpnT1b9OevRg.pgp
Description: PGP signature