Changeset View
Changeset View
Standalone View
Standalone View
mail/mutt/files/extra-patch-parent-child-match
--- doc/manual.xml.head.orig 2017-02-24 18:29:36 UTC | --- doc/manual.xml.head.orig 2017-05-30 19:27:52 UTC | ||||
+++ doc/manual.xml.head | +++ doc/manual.xml.head | ||||
@@ -4259,6 +4259,22 @@ variable <quote>all</quote>, which allow | @@ -4265,6 +4265,22 @@ variable <quote>all</quote>, which allow | ||||
their system defaults. | their system defaults. | ||||
</para> | </para> | ||||
+<para> | +<para> | ||||
+<emphasis role="bold">Parent and child match</emphasis>. | +<emphasis role="bold">Parent and child match</emphasis>. | ||||
+You can tell mutt that the following pattern has to be matched against | +You can tell mutt that the following pattern has to be matched against | ||||
+the parent message with < or one of its childs with >. | +the parent message with < or one of its childs with >. | ||||
+This example matches all mails which have at least an unread duplicate | +This example matches all mails which have at least an unread duplicate | ||||
+message: | +message: | ||||
+</para> | +</para> | ||||
+ | + | ||||
+<para> | +<para> | ||||
+ | + | ||||
+<screen> | +<screen> | ||||
+>(~= ~N) | +>(~= ~N) | ||||
+</screen> | +</screen> | ||||
+ | + | ||||
+</para> | +</para> | ||||
+ | + | ||||
</sect2> | </sect2> | ||||
<sect2 id="set-myvar"> | <sect2 id="set-myvar"> | ||||
--- mutt.h.orig 2017-02-24 18:29:36 UTC | --- mutt.h.orig 2017-06-03 23:16:03 UTC | ||||
+++ mutt.h | +++ mutt.h | ||||
@@ -863,6 +863,8 @@ typedef struct pattern_t | @@ -865,6 +865,8 @@ typedef struct pattern_t | ||||
unsigned int alladdr : 1; | unsigned int alladdr : 1; | ||||
unsigned int stringmatch : 1; | unsigned int stringmatch : 1; | ||||
unsigned int groupmatch : 1; | unsigned int groupmatch : 1; | ||||
+ unsigned int parentmatch : 1; | + unsigned int parentmatch : 1; | ||||
+ unsigned int childsmatch : 1; | + unsigned int childsmatch : 1; | ||||
unsigned int ign_case : 1; /* ignore case for local stringmatch searches */ | unsigned int ign_case : 1; /* ignore case for local stringmatch searches */ | ||||
unsigned int isalias : 1; | unsigned int isalias : 1; | ||||
int min; | int min; | ||||
--- pattern.c.orig 2017-02-24 18:29:37 UTC | --- pattern.c.orig 2017-05-30 19:26:40 UTC | ||||
+++ pattern.c | +++ pattern.c | ||||
@@ -46,6 +46,7 @@ static int eat_regexp (pattern_t *pat, B | @@ -46,6 +46,7 @@ static int eat_regexp (pattern_t *pat, B | ||||
static int eat_date (pattern_t *pat, BUFFER *, BUFFER *); | static int eat_date (pattern_t *pat, BUFFER *, BUFFER *); | ||||
static int eat_range (pattern_t *pat, BUFFER *, BUFFER *); | static int eat_range (pattern_t *pat, BUFFER *, BUFFER *); | ||||
static int patmatch (const pattern_t *pat, const char *buf); | static int patmatch (const pattern_t *pat, const char *buf); | ||||
+static int pattern_exec (struct pattern_t *pat, pattern_exec_flag flags, CONTEXT *ctx, HEADER *h, pattern_cache_t *cache); | +static int pattern_exec (struct pattern_t *pat, pattern_exec_flag flags, CONTEXT *ctx, HEADER *h, pattern_cache_t *cache); | ||||
static const struct pattern_flags | static const struct pattern_flags | ||||
▲ Show 20 Lines • Show All 126 Lines • Show Last 20 Lines |