summaryrefslogtreecommitdiff
path: root/mail/msgset.y
diff options
context:
space:
mode:
Diffstat (limited to 'mail/msgset.y')
-rw-r--r--mail/msgset.y8
1 files changed, 5 insertions, 3 deletions
diff --git a/mail/msgset.y b/mail/msgset.y
index 8011dc779..6f31325dd 100644
--- a/mail/msgset.y
+++ b/mail/msgset.y
@@ -163,13 +163,13 @@ msg : header REGEXP /* /.../ */
163 mu_error (_("No applicable messages from {:/%s}"), $1); 163 mu_error (_("No applicable messages from {:/%s}"), $1);
164 YYERROR; 164 YYERROR;
165 } 165 }
166 } 166 }
167 | TYPE /* :n, :d, etc */ 167 | TYPE /* :n, :d, etc */
168 { 168 {
169 if (strchr ("dnorTtu", $1) == NULL) 169 if (strchr ("dnorsTtu", $1) == NULL)
170 { 170 {
171 yyerror (_("unknown message type")); 171 yyerror (_("unknown message type"));
172 YYERROR; 172 YYERROR;
173 } 173 }
174 $$ = msgset_select (select_type, (void *)&$1, 0, 0); 174 $$ = msgset_select (select_type, (void *)&$1, 0, 0);
175 if (!$$) 175 if (!$$)
@@ -743,18 +743,20 @@ select_type (mu_message_t msg, void *closure)
743 case 'n': 743 case 'n':
744 return mu_attribute_is_recent (attr); 744 return mu_attribute_is_recent (attr);
745 case 'o': 745 case 'o':
746 return mu_attribute_is_seen (attr); 746 return mu_attribute_is_seen (attr);
747 case 'r': 747 case 'r':
748 return mu_attribute_is_read (attr); 748 return mu_attribute_is_read (attr);
749 case 'u': 749 case 's':
750 return !mu_attribute_is_read (attr); 750 return mu_attribute_is_userflag (attr, MAIL_ATTRIBUTE_SAVED);
751 case 't': 751 case 't':
752 return mu_attribute_is_userflag (attr, MAIL_ATTRIBUTE_TAGGED); 752 return mu_attribute_is_userflag (attr, MAIL_ATTRIBUTE_TAGGED);
753 case 'T': 753 case 'T':
754 return !mu_attribute_is_userflag (attr, MAIL_ATTRIBUTE_TAGGED); 754 return !mu_attribute_is_userflag (attr, MAIL_ATTRIBUTE_TAGGED);
755 case 'u':
756 return !mu_attribute_is_read (attr);
755 } 757 }
756 return 0; 758 return 0;
757} 759}
758 760
759int 761int
760select_deleted (mu_message_t msg, void *closure MU_ARG_UNUSED) 762select_deleted (mu_message_t msg, void *closure MU_ARG_UNUSED)

Return to:

Send suggestions and report system problems to the System administrator.