Subject: command to mark unread emails as read?

From: Ryan Barrett <[email-masked]>
Date: Thu, 17 Feb 2005 17:46:37 -0800 (PST)

hi all. i searched, but i still suspect this might be something of a FAQ, so 
apologies in advance.

i'd like a single-keystroke command to mark all unread messages in a folder as 
read. i think the "catchup" feature is similar, but it's only for newsgroups, 
and only offered on close.

yes, i can do this by selecting the unread messages and applying the "not" 
"unread" flags to them, but that's *six* keystrokes. whoa. like, harsh, dude.

i'll probably write a patch to do this, but i figured i'd check here first to 
see if i was missing anything obvious. thanks in advance...

-Ryan

--
http://ryan.barrett.name/
-- 
-----------------------------------------------------------------
 For information about this mailing list, and its archives, see: 
 http://www.washington.edu/pine/pine-info/
-----------------------------------------------------------------

---

From: Eduardo Chappa <[email-masked]>
Date: Thu, 17 Feb 2005 20:25:29 -0800 (PST)

*** Ryan Barrett ([email-masked]) wrote in the pine-info list today:

:) i'd like a single-keystroke command to mark all unread messages in a 
:) folder as read. i think the "catchup" feature is similar, but it's only 
:) for newsgroups, and only offered on close.
:) 
:) yes, i can do this by selecting the unread messages and applying the 
:) "not" "unread" flags to them, but that's *six* keystrokes. whoa. like, 
:) harsh, dude.
:) 
:) i'll probably write a patch to do this, but i figured i'd check here 
:) first to see if i was missing anything obvious. thanks in advance...

Let me know when you have finished the patch. (I hope that answers your 
question).

-- 
Eduardo
Patches/Help: http://www.math.washington.edu/~chappa/pine/
XML/RSS feed: http://www.math.washington.edu/~chappa/pine/pine.xml
Please send spam to webmaster@localhost

---

From: Nicolas Kowalski <[email-masked]>
Date: Fri, 18 Feb 2005 09:30:50 +0100

> and only offered on close.

I use a workaround for this, but be warned, this is probably not what
you want, and it interacts badly with any other IMAP clients.

I defined a filter "catchup" for some of my incoming folders
(mailing-lists); it selects any message that is not recent, and
unseen, and change its status to seen.

The effect is the following:

- I open an incoming folder which has recent messages, read some of
  them, then close the folder; the recent status is then cleared, but
  not the unseen status if the messages I did not read.

- when I later re-open this folder, the messages which are still
  unseen, but do not have the recent status (the ones I did not
  read above, and probably do not want to read this time) will have
  their unseen flag cleared by the filter.

Again, this is a workaround, but not a proper solution...

-- 
Nicolas

---

From: Ryan Barrett <[email-masked]>
Date: Sat, 19 Feb 2005 13:02:39 -0800 (PST)

On Fri, 18 Feb 2005, Nicolas Kowalski wrote:

> (mailing-lists); it selects any message that is not recent, and unseen, 
> and change its status to seen.

ah...this works great! thanks, nicolas. i always prefer less code to more, 
and in this case, zero code definitely qualifies.

fyi, for anyone else who'd like to try this, it appears that different 
imap servers handle the "recent" flag differently. one of mine clears it 
if i close and reopen the folder, but on another, i have to quit out of 
pine and reconnect before it clears it.

-Ryan