* mu: allow 'recip:' in queries as a shortcut for "to:foo OR cc:foo OR bcc:foo"

This commit is contained in:
djcb
2012-10-25 12:28:55 +03:00
parent 9bf8edf03b
commit 412de6f4aa
5 changed files with 31 additions and 11 deletions

View File

@ -67,6 +67,10 @@ static const MuMsgFieldId MU_MSG_FIELD_ID_NONE = (MuMsgFieldId)-1;
* in mu-query.cc and mu-str.c */
#define MU_MSG_FIELD_PSEUDO_CONTACT "contact"
/* this is a shortcut for To/Cc/Bcc in queries; handled specially in
* mu-query.cc and mu-str.c */
#define MU_MSG_FIELD_PSEUDO_RECIP "recip"
#define mu_msg_field_id_is_valid(MFID) \
((MFID) < MU_MSG_FIELD_ID_NUM)