*/
struct PatternFlags
{
- int tag; ///< character used to represent this op
- int op; ///< operation to perform
- int flags; ///< Pattern flags, e.g. #MUTT_PC_FULL_MSG
+ int tag; ///< Character used to represent this operation, e.g. 'A' for '~A'
+ int op; ///< Operation to perform, e.g. #MUTT_PAT_SCORE
+ int flags; ///< Pattern flags, e.g. #MUTT_PC_FULL_MSG
pattern_eat_t *eat_arg; ///< Callback function to parse the argument
};
* Flags - Lookup table for all patterns
*/
static const struct PatternFlags Flags[] = {
- { 'A', MUTT_ALL, 0, NULL },
- { 'b', MUTT_PAT_BODY, MUTT_PC_FULL_MSG, eat_regex },
- { 'B', MUTT_PAT_WHOLE_MSG, MUTT_PC_FULL_MSG, eat_regex },
- { 'c', MUTT_PAT_CC, 0, eat_regex },
- { 'C', MUTT_PAT_RECIPIENT, 0, eat_regex },
- { 'd', MUTT_PAT_DATE, 0, eat_date },
- { 'D', MUTT_DELETED, 0, NULL },
- { 'e', MUTT_PAT_SENDER, 0, eat_regex },
- { 'E', MUTT_EXPIRED, 0, NULL },
- { 'f', MUTT_PAT_FROM, 0, eat_regex },
- { 'F', MUTT_FLAG, 0, NULL },
- { 'g', MUTT_PAT_CRYPT_SIGN, 0, NULL },
- { 'G', MUTT_PAT_CRYPT_ENCRYPT, 0, NULL },
- { 'h', MUTT_PAT_HEADER, MUTT_PC_FULL_MSG, eat_regex },
- { 'H', MUTT_PAT_HORMEL, 0, eat_regex },
- { 'i', MUTT_PAT_ID, 0, eat_regex },
- { 'I', MUTT_PAT_ID_EXTERNAL, 0, eat_query },
- { 'k', MUTT_PAT_PGP_KEY, 0, NULL },
- { 'l', MUTT_PAT_LIST, 0, NULL },
- { 'L', MUTT_PAT_ADDRESS, 0, eat_regex },
- { 'm', MUTT_PAT_MESSAGE, 0, eat_message_range },
- { 'M', MUTT_PAT_MIMETYPE, MUTT_PC_FULL_MSG, eat_regex },
- { 'n', MUTT_PAT_SCORE, 0, eat_range },
- { 'N', MUTT_NEW, 0, NULL },
- { 'O', MUTT_OLD, 0, NULL },
- { 'p', MUTT_PAT_PERSONAL_RECIP, 0, NULL },
- { 'P', MUTT_PAT_PERSONAL_FROM, 0, NULL },
- { 'Q', MUTT_REPLIED, 0, NULL },
- { 'r', MUTT_PAT_DATE_RECEIVED, 0, eat_date },
- { 'R', MUTT_READ, 0, NULL },
- { 's', MUTT_PAT_SUBJECT, 0, eat_regex },
- { 'S', MUTT_SUPERSEDED, 0, NULL },
- { 't', MUTT_PAT_TO, 0, eat_regex },
- { 'T', MUTT_TAG, 0, NULL },
- { 'u', MUTT_PAT_SUBSCRIBED_LIST, 0, NULL },
- { 'U', MUTT_UNREAD, 0, NULL },
- { 'v', MUTT_PAT_COLLAPSED, 0, NULL },
- { 'V', MUTT_PAT_CRYPT_VERIFIED, 0, NULL },
+ { 'A', MUTT_ALL, 0, NULL },
+ { 'b', MUTT_PAT_BODY, MUTT_PC_FULL_MSG, eat_regex },
+ { 'B', MUTT_PAT_WHOLE_MSG, MUTT_PC_FULL_MSG, eat_regex },
+ { 'c', MUTT_PAT_CC, 0, eat_regex },
+ { 'C', MUTT_PAT_RECIPIENT, 0, eat_regex },
+ { 'd', MUTT_PAT_DATE, 0, eat_date },
+ { 'D', MUTT_DELETED, 0, NULL },
+ { 'e', MUTT_PAT_SENDER, 0, eat_regex },
+ { 'E', MUTT_EXPIRED, 0, NULL },
+ { 'f', MUTT_PAT_FROM, 0, eat_regex },
+ { 'F', MUTT_FLAG, 0, NULL },
+ { 'g', MUTT_PAT_CRYPT_SIGN, 0, NULL },
+ { 'G', MUTT_PAT_CRYPT_ENCRYPT, 0, NULL },
+ { 'h', MUTT_PAT_HEADER, MUTT_PC_FULL_MSG, eat_regex },
+ { 'H', MUTT_PAT_HORMEL, 0, eat_regex },
+ { 'i', MUTT_PAT_ID, 0, eat_regex },
+ { 'I', MUTT_PAT_ID_EXTERNAL, 0, eat_query },
+ { 'k', MUTT_PAT_PGP_KEY, 0, NULL },
+ { 'l', MUTT_PAT_LIST, 0, NULL },
+ { 'L', MUTT_PAT_ADDRESS, 0, eat_regex },
+ { 'm', MUTT_PAT_MESSAGE, 0, eat_message_range },
+ { 'M', MUTT_PAT_MIMETYPE, MUTT_PC_FULL_MSG, eat_regex },
+ { 'n', MUTT_PAT_SCORE, 0, eat_range },
+ { 'N', MUTT_NEW, 0, NULL },
+ { 'O', MUTT_OLD, 0, NULL },
+ { 'p', MUTT_PAT_PERSONAL_RECIP, 0, NULL },
+ { 'P', MUTT_PAT_PERSONAL_FROM, 0, NULL },
+ { 'Q', MUTT_REPLIED, 0, NULL },
+ { 'r', MUTT_PAT_DATE_RECEIVED, 0, eat_date },
+ { 'R', MUTT_READ, 0, NULL },
+ { 's', MUTT_PAT_SUBJECT, 0, eat_regex },
+ { 'S', MUTT_SUPERSEDED, 0, NULL },
+ { 't', MUTT_PAT_TO, 0, eat_regex },
+ { 'T', MUTT_TAG, 0, NULL },
+ { 'u', MUTT_PAT_SUBSCRIBED_LIST, 0, NULL },
+ { 'U', MUTT_UNREAD, 0, NULL },
+ { 'v', MUTT_PAT_COLLAPSED, 0, NULL },
+ { 'V', MUTT_PAT_CRYPT_VERIFIED, 0, NULL },
#ifdef USE_NNTP
- { 'w', MUTT_PAT_NEWSGROUPS, 0, eat_regex },
+ { 'w', MUTT_PAT_NEWSGROUPS, 0, eat_regex },
#endif
- { 'x', MUTT_PAT_REFERENCE, 0, eat_regex },
- { 'X', MUTT_PAT_MIMEATTACH, 0, eat_range },
- { 'y', MUTT_PAT_XLABEL, 0, eat_regex },
- { 'Y', MUTT_PAT_DRIVER_TAGS, 0, eat_regex },
- { 'z', MUTT_PAT_SIZE, 0, eat_range },
- { '=', MUTT_PAT_DUPLICATED, 0, NULL },
- { '$', MUTT_PAT_UNREFERENCED, 0, NULL },
- { '#', MUTT_PAT_BROKEN, 0, NULL },
- { '/', MUTT_PAT_SERVERSEARCH, 0, eat_regex },
- { 0, 0, 0, NULL },
+ { 'x', MUTT_PAT_REFERENCE, 0, eat_regex },
+ { 'X', MUTT_PAT_MIMEATTACH, 0, eat_range },
+ { 'y', MUTT_PAT_XLABEL, 0, eat_regex },
+ { 'Y', MUTT_PAT_DRIVER_TAGS, 0, eat_regex },
+ { 'z', MUTT_PAT_SIZE, 0, eat_range },
+ { '=', MUTT_PAT_DUPLICATED, 0, NULL },
+ { '$', MUTT_PAT_UNREFERENCED, 0, NULL },
+ { '#', MUTT_PAT_BROKEN, 0, NULL },
+ { '/', MUTT_PAT_SERVERSEARCH, 0, eat_regex },
+ { 0, 0, 0, NULL },
};
// clang-format on