From 998e01348a6264c238677789746a173c0075a74a Mon Sep 17 00:00:00 2001 From: Rohan Kumar 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 - ::= from | to | subject | + ::= from | to | cc | subject | ::= . 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"))