nmh-workers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nmh-workers] Stupid 'pick' question...


From: Valdis Klētnieks
Subject: [nmh-workers] Stupid 'pick' question...
Date: Fri, 07 Jun 2019 19:00:52 -0400

So.... trying to work with the linux-kernel mailing list firehose (800-1500
messages a day), and hitting a problem with 'pick'.

Am trying to match all messages from a given person with a given part of
a subject line.

pick -from <address> -subject '\[PATCH [45]\.[0-9]'

*almost* does what I want - catch all messages that have '[PATCH 4.9]'
or '[PATCH 4.14]'  or '[PATCH 5.0]'.  However, it *also* catches messages
of the form 'Subject: Re: [PATCH ....' which is unacceptable for the use case
in question.

So I tried an anchored search using -subject '^\[PATCH [45]\.[0-9]' but that
results in nothing matching. So much for this from the manpage:

       A modified grep(1) is used to perform the matching, so the  full  regular
       expression  (see  ed(1))  facility  is  available  within  pattern.  With
       -search, pattern is used directly, and with the others, the grep  pattern
       constructed is:

So is ^ to anchor the search in fact unsupported?  Broken? I'm using it wrong?

Oddly enough, $ for tail-anchor seems to work:

18:56:33 0 [~/Mail/kernel-patches] scan `pick +linux-kernel last:3000 -from 
address@hidden -and -subject 'path' -list` | more
416491      *  17:38 +02      6k Greg Kroah-Hartma  [PATCH 4.14 04/69] net: 
fec: fix the clk mismatch in failed_reset path <<From: Andy Duan 
<address@hidden> [ Upstre
416492      *  17:38 +02      6k Greg Kroah-Hartma  [PATCH 4.14 14/69] net: 
mvneta: Fix err code path of probe <<From: Jisheng Zhang <address@hidden> [ 
Upstre
416502      *  17:39 +02      6k Greg Kroah-Hartma  [PATCH 4.14 30/69] USB: 
sisusbvga: fix oops in error path of sisusb_probe <<From: Oliver Neukum 
<address@hidden> comm
416537      *  17:38 +02      6k Greg Kroah-Hartma  [PATCH 4.19 10/73] USB: 
sisusbvga: fix oops in error path of sisusb_probe <<From: Oliver Neukum 
<address@hidden> comm
416689      *  17:38 +02      6k Greg Kroah-Hartma  [PATCH 5.1 10/85] USB: 
sisusbvga: fix oops in error path of sisusb_probe <<From: Oliver Neukum 
<address@hidden> commi
18:56:52 0 [~/Mail/kernel-patches] scan `pick +linux-kernel last:3000 -from 
address@hidden -and -subject 'path$' -list` | more
416491      *  17:38 +02      6k Greg Kroah-Hartma  [PATCH 4.14 04/69] net: 
fec: fix the clk mismatch in failed_reset path <<From: Andy Duan 
<address@hidden> [ Upstre
18:57:08 0 [~/Mail/kernel-patches]

Attachment: pgpTdAaBpWqdA.pgp
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]