Commit 277b7b76 277b7b768c4d72f17bfc9b0c146dec6c6769c5e1 by Sergey Poznyakoff

Fixed erroneous call to msgset_select (second arg should have been a pointer).

Added :t (tagged) and :T (untagged) selection criteria.
1 parent 94fa1656
......@@ -126,12 +126,12 @@ msg : header REGEXP /* /.../ */
}
| TYPE /* :n, :d, etc */
{
if (strchr ("dnoru", $1) == NULL)
if (strchr ("dnorTtu", $1) == NULL)
{
yyerror ("unknown message type");
YYERROR;
}
$$ = msgset_select (select_type, (void *)$1, 0, 0);
$$ = msgset_select (select_type, (void *)&$1, 0, 0);
}
| IDENT /* Sender name */
{
......@@ -599,6 +599,10 @@ select_type (message_t msg, void *closure)
return attribute_is_read (attr);
case 'u':
return !attribute_is_read (attr);
case 't':
return attribute_is_userflag (attr, MAIL_ATTRIBUTE_TAGGED);
case 'T':
return !attribute_is_userflag (attr, MAIL_ATTRIBUTE_TAGGED);
}
return 0;
}
......