marking a message as "read"

Kevin J. McCarthy kevin at 8t8.us
Fri Sep 6 20:29:41 UTC 2019


On Fri, Sep 06, 2019 at 07:50:36AM -0700, Kevin J. McCarthy wrote:
>If you have both "new" and "old" messages in the mailbox and want to 
>clear both of them (marking them as read), I would suggest using 
>something like
>  <tag-pattern>~U<enter><tag-prefix-cond><clear-flag>O
>Clearing "old" will actually set both "new" and "old" messages to 
>"read".

Just to follow-up to this and at the same time address Kurt's question, 
clearing "new" effectively does so too.  So
   <tag-pattern>~U<enter><tag-prefix-cond><clear-flag>N
would work just as well.

Internally, Mutt uses two different bits, "old", and "read" to represent 
the three states.  "<clear-flag>O" sets the read bit and unsets the old 
bit, while "<clear-flag>N" only sets the read bit.  However, Mutt 
patterns and display flags ignore the old bit if read is set.

-- 
Kevin J. McCarthy
GPG Fingerprint: 8975 A9B3 3AA3 7910 385C  5308 ADEF 7684 8031 6BDA
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://lists.mutt.org/pipermail/mutt-users/attachments/20190906/99be170a/attachment.asc>


More information about the Mutt-users mailing list