<<< Date Index >>>     <<< Thread Index >>>

Re: [PATCH] Parent match



Dear list,

On Fri, Nov 14, 2008 at 03:38:34PM +0100, Vincent Lefevre wrote:
> On 2008-11-13 12:17:40 +0100, Jeremie Le Hen wrote:
> > Attached you will find a patch introducing a new match pattern: =().
> > Thanks to this pattern you can match the parent message of messages
> > matching the inner pattern.
> 
> If I understand correctly, this is the reverse of Aaron Schrab's
> parent_match patch (which used the % modifier, but this modifier
> is now used for something else, so that I modified the patch to
> use < instead, and no need for parentheses). Perhaps you should
> use the > modifier. It would be nice to have both features in
> Mutt.

I endeavored to implement < and > pattern modifiers :).  As explained in
the manual, < matches the following pattern against the parent message
and > matches against all child messages.  A message will be matched if
at least one of its childs matches the pattern.

The logic is different from my original attempt but it can achieve the
same goal.

For example, all messages that have a non-new duplicate:
    >(~= !~N)

Regards,
-- 
Jeremie Le Hen
< jeremie at le-hen dot org >< ttz at chchile dot org >