diff options
author | Thomas Roessler <roessler@does-not-exist.org> | 1998-09-30 06:03:21 +0000 |
---|---|---|
committer | Thomas Roessler <roessler@does-not-exist.org> | 1998-09-30 06:03:21 +0000 |
commit | a94d3f55923d206e3327551d3dd1654c1a119438 (patch) | |
tree | fde98aa4ab74b5a08a105807f6aea107dd1cde87 /pattern.c | |
parent | c4bf1e840eae83089a47a240bfb47517cd2c7db5 (diff) |
Add ~g and ~G patterns for PGP signed and encrypted messages.
Diffstat (limited to 'pattern.c')
-rw-r--r-- | pattern.c | 12 |
1 files changed, 12 insertions, 0 deletions
@@ -60,6 +60,10 @@ Flags[] = { 'E', M_EXPIRED, 0, NULL }, { 'f', M_FROM, 0, eat_regexp }, { 'F', M_FLAG, 0, NULL }, +#ifdef _PGPPATH + { 'g', M_PGP_SIGN, 0, NULL }, + { 'G', M_PGP_ENCRYPT, 0, NULL }, +#endif { 'h', M_HEADER, M_FULL_MSG, eat_regexp }, { 'i', M_ID, 0, eat_regexp }, { 'L', M_ADDRESS, 0, eat_regexp }, @@ -819,6 +823,14 @@ mutt_pattern_exec (struct pattern_t *pat, pattern_exec_flag flags, CONTEXT *ctx, case M_PERSONAL_FROM: return (pat->not ^ (match_user (h->env->from))); break; +#ifdef _PGPPATH + case M_PGP_SIGN: + return (pat->not ^ (h->pgp & PGPSIGN)); + break; + case M_PGP_ENCRYPT: + return (pat->not ^ (h->pgp & PGPENCRYPT)); + break; +#endif } mutt_error ("error: unknown op %d (report this error).", pat->op); return (-1); |