[-- Attachment #1: Type: text/plain, Size: 366 bytes --]
There is a new pull request by Seirdy against master on the mblaze repository
https://github.com/Seirdy/mblaze feat/mpick-filter-by-cc
https://github.com/leahneukirchen/mblaze/pull/192
mpick: add 'cc' filter expression
Closes https://github.com/leahneukirchen/mblaze/issues/186
A patch file from https://github.com/leahneukirchen/mblaze/pull/192.patch is attached
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-feat/mpick-filter-by-cc-192.patch --]
[-- Type: text/x-diff, Size: 1166 bytes --]
From 998e01348a6264c238677789746a173c0075a74a Mon Sep 17 00:00:00 2001
From: Rohan Kumar <seirdy@seirdy.one>
Date: Fri, 6 Nov 2020 10:49:47 -0800
Subject: [PATCH] mpick: add 'cc' filter expression
Closes https://github.com/leahneukirchen/mblaze/issues/186
---
man/mpick.1 | 2 +-
mpick.c | 2 ++
2 files changed, 3 insertions(+), 1 deletion(-)
diff --git a/man/mpick.1 b/man/mpick.1
index 007fca6..fdc1fef 100644
--- a/man/mpick.1
+++ b/man/mpick.1
@@ -92,7 +92,7 @@ tests are given by the following EBNF:
| T )? -- *1024*1024*1024*1024
| cur -- index of cur message
-<hdrprop> ::= from | to | subject | <str>
+<hdrprop> ::= from | to | cc | subject | <str>
<decodeop> ::= . addr -- match address parts
| . disp -- match address display parts
diff --git a/mpick.c b/mpick.c
index 3b11e67..3364249 100644
--- a/mpick.c
+++ b/mpick.c
@@ -601,6 +601,8 @@ parse_strcmp()
h = xstrdup("from");
else if (token("to"))
h = xstrdup("to");
+ else if (token("cc"))
+ h = xstrdup("cc");
else if (token("subject"))
h = xstrdup("subject");
else if (token("path"))