Fixed erroneous call to msgset_select (second arg should have been a pointer).
Added :t (tagged) and :T (untagged) selection criteria.
Showing
1 changed file
with
6 additions
and
2 deletions
... | @@ -126,12 +126,12 @@ msg : header REGEXP /* /.../ */ | ... | @@ -126,12 +126,12 @@ msg : header REGEXP /* /.../ */ |
126 | } | 126 | } |
127 | | TYPE /* :n, :d, etc */ | 127 | | TYPE /* :n, :d, etc */ |
128 | { | 128 | { |
129 | if (strchr ("dnoru", $1) == NULL) | 129 | if (strchr ("dnorTtu", $1) == NULL) |
130 | { | 130 | { |
131 | yyerror ("unknown message type"); | 131 | yyerror ("unknown message type"); |
132 | YYERROR; | 132 | YYERROR; |
133 | } | 133 | } |
134 | $$ = msgset_select (select_type, (void *)$1, 0, 0); | 134 | $$ = msgset_select (select_type, (void *)&$1, 0, 0); |
135 | } | 135 | } |
136 | | IDENT /* Sender name */ | 136 | | IDENT /* Sender name */ |
137 | { | 137 | { |
... | @@ -599,6 +599,10 @@ select_type (message_t msg, void *closure) | ... | @@ -599,6 +599,10 @@ select_type (message_t msg, void *closure) |
599 | return attribute_is_read (attr); | 599 | return attribute_is_read (attr); |
600 | case 'u': | 600 | case 'u': |
601 | return !attribute_is_read (attr); | 601 | return !attribute_is_read (attr); |
602 | case 't': | ||
603 | return attribute_is_userflag (attr, MAIL_ATTRIBUTE_TAGGED); | ||
604 | case 'T': | ||
605 | return !attribute_is_userflag (attr, MAIL_ATTRIBUTE_TAGGED); | ||
602 | } | 606 | } |
603 | return 0; | 607 | return 0; |
604 | } | 608 | } | ... | ... |
-
Please register or sign in to post a comment