Re: push '<collapse-all>' -> Question ...
- To: mutt-users@xxxxxxxx
- Subject: Re: push '<collapse-all>' -> Question ...
- From: Kyle Wheeler <kyle-mutt@xxxxxxxxxxxxxx>
- Date: Wed, 30 Jan 2008 09:33:16 -0600
- Comment: DomainKeys? See http://domainkeys.sourceforge.net/
- Dkim-signature: v=1; a=rsa-sha1; c=relaxed; d=memoryhole.net; h=date: from:to:subject:message-id:references:mime-version:content-type: in-reply-to; q=dns/txt; s=default; bh=cnB6GTlk4+ylN7W7G64NBIQAPA A=; b=hHNU3bTw7eJfWdq91kt/hfalS8aZo72bWZiTlOy90liiIttJYdeCrKMHB/ Myl/pxEdYnTnTDynUI4+OpSmfZEcdYQ2cCWWrcYKVHAX0J815mrvd5SKzlU7rL51 jSSsmuZWMsATAVJsTNRPeK9Mi5WDgm6JEY5W7gXTfDBxnK8o0=
- Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=default; d=memoryhole.net; b=SvqeJUVlAl8WUnincod+QxOwrQvB25UnSh2RUlc1+yeo0ymVot+fVkjzI6EaU9PJxLnQoZiswaj7tGOMYd6wOp5U7BVnOlnuxlQfPhHGOqHWq+GP8m9oRn2U5I+p4rk2vxbo+vYITgWOt5xr5x/2mOcduNs1Eq3XA1P1AowF5qI=; h=Received:Received:Date:From:To:Subject:Message-ID:Mail-Followup-To:References:MIME-Version:Content-Type:Content-Disposition:In-Reply-To:User-Agent;
- In-reply-to: <20080130082156.GB19808@xxxxxxxxxxxxxxxxx>
- List-post: <mailto:mutt-users@mutt.org>
- List-unsubscribe: send mail to majordomo@mutt.org, body only "unsubscribe mutt-users"
- Mail-followup-to: mutt-users@xxxxxxxx
- References: <20080130024150.GA2102@xxxxxxxxxxxxxxxxxxxxxxxxxxxx> <20080130082156.GB19808@xxxxxxxxxxxxxxxxx>
- Sender: owner-mutt-users@xxxxxxxx
- User-agent: Mutt/1.5.17 (2008-01-14)
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Wednesday, January 30 at 08:21 AM, quoth Michael Kjorling:
>On 30 Jan 2008 11:41 +0900, by alex.wilkinson@xxxxxxxxxxxxxxxxxxx (Wilkinson,
>Alex):
>> folder-hook . \
>> set sort=reverse-threads ;\
>This semicolon ^
>terminates the folder-hook command, which is probably not what you
>intended.
>> set sort_aux=last-date-received ;\
>> push '<collapse-all>' ;\
>> set index_format="%3N %4C %Z %{%b %d} %-15.15F (%4c) %?M?%M> ?%s"
>> ;\
>> set display_filter='t-prot -acelmtS -Mmutt --spass'
>
>If you want to specify more than one command in a single folder-hook,
>you can either source a separate file, or quote the command part of
>the hook.
To expand on what Michael said, this would work:
folder-hook . \
"set sort=reverse-threads ;\
set sort_aux=last-date-received ;\
push '<collapse-all>' ;\
set index_format='%3N %4C %Z %{%b %d} %-15.15F (%4c) %?M?%M> ?%s'
;\
set display_filter='t-prot -acelmtS -Mmutt --spass'"
Note the double-quote at the beginning and end of the hook (and that I
replaced your index_format double-quotes with single-quotes).
It's also worth pointing out that unless you have things changing
these settings in other hooks, you can quite easily get the same
behavior in a much simpler fashion:
set sort=reverse-threads
set sort_aux=last-date-received
set index_format='%3N %4C %Z %{%b %d} %-15.15F (%4c) %?M?%M> ?%s'
set display_filter='t-prot -acelmtS -Mmutt --spass'
folder-hook . "push '<collapse-all>"
The "push" command is the only one that really needs to be done every
time you enter a mailbox in order to get the behavior you describe.
~Kyle
- --
Two things fill the mind with ever new and increasing wonder and awe,
the more often and the more seriously reflection concentrates upon
them: the starry heaven above me and the moral law within me.
-- Immanuel Kant
-----BEGIN PGP SIGNATURE-----
Comment: Thank you for using encryption!
iD8DBQFHoJi8BkIOoMqOI14RArvLAKDtqn3qMNK4U9C6JiVPdr5hxf6HmACg9Gdc
+ulhDxG9wzTgJYALhxn4/es=
=qvAn
-----END PGP SIGNATURE-----