collapse-all in a macro
- To: mutt-dev@xxxxxxxx
- Subject: collapse-all in a macro
- From: Michael Elkins <michael.elkins@xxxxxxxxx>
- Date: Sun, 4 Nov 2007 17:48:52 -0800
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:date:from:to:subject:message-id:mime-version:content-type:content-disposition:user-agent; bh=IqqDW9YkiRiYTIHxw5m2yxuTLk5ENw8//8bQ4xCQ9iU=; b=q2MdHlguCA+hIyar5t0WTNnb1OsTAhRIIPXzqihKASSiF2gdIeLL0TFff5kYzfd58BUnMXhY13g0EcA6QUlytT3PHw2oWBddI6nvPRjJ2lH45AB45vjNaw0a/LgqcFd3UHn/kpimFhB0K9SHX9E2Ei91wm15XCTj4IgMIgbbxUQ=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:date:from:to:subject:message-id:mime-version:content-type:content-disposition:user-agent; b=K9WVYpcgpkiDqzz3zE1g2mEIJrUpwLYvCBiKPCU48vrvLopA9piq2bXak4a/H4D1rEBmJ+l6ZITgQFlZ2yJIpGj+4WQk4FIsFQk+Bl2OuygTcgl3O5yw1VpAsqVLb1IcsRWBl8c8Mz2cthl7EdaIOUU3oNq3vjQIuLKY2CFzHx4=
- List-post: <mailto:mutt-dev@mutt.org>
- List-unsubscribe: send mail to majordomo@mutt.org, body only "unsubscribe mutt-dev"
- Sender: owner-mutt-dev@xxxxxxxx
- User-agent: Mutt/1.5.17 (2007-11-04)
Greetings Mutt'ers,
Has anyone tried to use collapse-all in a macro? I'm trying to create a
"mark all messages in the mailbox as read." My first shot looked a
little like this:
macro index C "T.\n;Wn\ct.\n" "mark all messages as read"
However, I normally have a folder-hook with "push <collapse-all>", and
thus the macro doesn't tag messages which are currently collapsed. So
my second try went a little like this:
macro index C "<collapse-all>T.\n;Wn\ct.\n" "mark all messages as read"
Except that collapse-all is a toggle. What I really need is some way to
always uncollapse-all.
Suggestions for alternatives are quite welcome.
me