diff options
-rw-r--r-- | NEWS | 12 | ||||
-rw-r--r-- | doc/texinfo/programs/mail.texi | 14 | ||||
-rw-r--r-- | mail/mailline.c | 2 | ||||
-rw-r--r-- | mail/msgset.y | 8 |
4 files changed, 24 insertions, 12 deletions
@@ -1,2 +1,2 @@ -GNU mailutils NEWS -- history of user-visible changes. 2019-09-03 +GNU mailutils NEWS -- history of user-visible changes. 2019-09-11 Copyright (C) 2002-2019 Free Software Foundation, Inc. @@ -29,3 +29,11 @@ The --test option takes optional argument: name of the tty or file to use for reporting. - + +* mail + +** fix the semantics of 'hold' and 'keepsave' variables + +** New message type specification ":s" + +Selects messages in state 'saved'. + diff --git a/doc/texinfo/programs/mail.texi b/doc/texinfo/programs/mail.texi index b4c68a100..accd89148 100644 --- a/doc/texinfo/programs/mail.texi +++ b/doc/texinfo/programs/mail.texi @@ -434,14 +434,16 @@ All messages of type @var{t}, where @var{t} can be any of: Deleted messages. -@item :n +@item n New messages. -@item :o +@item o Old messages (any message not in state @samp{read} or @samp{new}). -@item :r +@item r Messages in state @samp{read}. -@item :u +@item u Messages in state @samp{unread}. -@item :t +@item t Selects all tagged messages. -@item :T +@item T Selects all untagged messages. +@item s +Selects all messages in state @samp{saved}. @end table diff --git a/mail/mailline.c b/mail/mailline.c index 647cb1e17..d6cef37df 100644 --- a/mail/mailline.c +++ b/mail/mailline.c @@ -692,3 +692,3 @@ msgtype_generator (const char *text, int state) meaning body lookup */ - static char types[] = "dnorTtu/"; + static char types[] = "dnorsTtu/"; static int i; diff --git a/mail/msgset.y b/mail/msgset.y index 8011dc779..6f31325dd 100644 --- a/mail/msgset.y +++ b/mail/msgset.y @@ -168,3 +168,3 @@ msg : header REGEXP /* /.../ */ { - if (strchr ("dnorTtu", $1) == NULL) + if (strchr ("dnorsTtu", $1) == NULL) { @@ -748,4 +748,4 @@ select_type (mu_message_t msg, void *closure) 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': @@ -754,2 +754,4 @@ select_type (mu_message_t msg, void *closure) return !mu_attribute_is_userflag (attr, MAIL_ATTRIBUTE_TAGGED); + case 'u': + return !mu_attribute_is_read (attr); } |