nmh-workers
[Top] [All Lists]

Re: sorting uniquely by message-id

2020-09-21 09:37:53
Dear Paul,

In message <20200921141312.C26345185337@grass.foxharp.boston.ma.us> you wrote:

 > It still fails in a number of cases because "pick -search 'message-id:.*'"
 > searches everywhere in the message, including the body; I have a few
 > messages (as mentioned before, without their own message ID as they
 > were archived using a Fcc: header), which have an Message-ID: line
 > embedded in the body.  Then this message is considered identical to
 > the one containing this message-id in the header...

The pick man page doesn't present this quite as clearly as it could,
but when it refers to "--component", "component" means "any header
field name".  So I think what you want is:  "pick --message-id .*". 
(The double hyphen is important.)

Indeed, this fixes the problem (of course we have to escape the '.*' tp
prevent the shell from expanding it).

Thanks!

Best regards,

Wolfgang Denk

-- 
DENX Software Engineering GmbH,      Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd@denx.de
It's all Klatchian to me.
        - Terry Pratchett & Stephen Briggs, _The Discworld Companion_

<Prev in Thread] Current Thread [Next in Thread>