diff options
author | Sergey Poznyakoff <gray@gnu.org.ua> | 2019-09-11 13:10:44 +0300 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org.ua> | 2019-09-11 13:10:44 +0300 |
commit | cf8100abb84b8ba92f6a3d33c60c2dbce950e119 (patch) | |
tree | 356777c49e88c176fe900a0877e79c91de667077 /mail/msgset.y | |
parent | e8c4245e1a4c8e2cb130cfcefa4474909bcb7906 (diff) | |
download | mailutils-cf8100abb84b8ba92f6a3d33c60c2dbce950e119.tar.gz mailutils-cf8100abb84b8ba92f6a3d33c60c2dbce950e119.tar.bz2 |
mail: new message specification :s
* NEWS: Update.
* doc/texinfo/programs/mail.texi: Update.
* mail/mailline.c (msgtype_generator): Recogize 's'
* mail/msgset.y (select_type): Recognize 's'
Diffstat (limited to 'mail/msgset.y')
-rw-r--r-- | mail/msgset.y | 8 |
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 @@ -166,7 +166,7 @@ msg : header REGEXP /* /.../ */ } | TYPE /* :n, :d, etc */ { - if (strchr ("dnorTtu", $1) == NULL) + if (strchr ("dnorsTtu", $1) == NULL) { yyerror (_("unknown message type")); YYERROR; @@ -746,12 +746,14 @@ select_type (mu_message_t msg, void *closure) 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; } |