summaryrefslogtreecommitdiffabout
path: root/mail/msgset.y
Side-by-side diff
Diffstat (limited to 'mail/msgset.y') (more/less context) (ignore whitespace changes)
-rw-r--r--mail/msgset.y8
1 files changed, 5 insertions, 3 deletions
diff --git a/mail/msgset.y b/mail/msgset.y
index 8011dc7..6f31325 100644
--- a/mail/msgset.y
+++ b/mail/msgset.y
@@ -163,13 +163,13 @@ msg : header REGEXP /* /.../ */
mu_error (_("No applicable messages from {:/%s}"), $1);
YYERROR;
}
}
| TYPE /* :n, :d, etc */
{
- if (strchr ("dnorTtu", $1) == NULL)
+ if (strchr ("dnorsTtu", $1) == NULL)
{
yyerror (_("unknown message type"));
YYERROR;
}
$$ = msgset_select (select_type, (void *)&$1, 0, 0);
if (!$$)
@@ -743,18 +743,20 @@ select_type (mu_message_t msg, void *closure)
case 'n':
return mu_attribute_is_recent (attr);
case 'o':
return mu_attribute_is_seen (attr);
case 'r':
return mu_attribute_is_read (attr);
- case 'u':
- return !mu_attribute_is_read (attr);
+ case 's':
+ return mu_attribute_is_userflag (attr, MAIL_ATTRIBUTE_SAVED);
case 't':
return mu_attribute_is_userflag (attr, MAIL_ATTRIBUTE_TAGGED);
case 'T':
return !mu_attribute_is_userflag (attr, MAIL_ATTRIBUTE_TAGGED);
+ case 'u':
+ return !mu_attribute_is_read (attr);
}
return 0;
}
int
select_deleted (mu_message_t msg, void *closure MU_ARG_UNUSED)

Return to:

Send suggestions and report system problems to the System administrator.