Re: folder-hook commands
- To: mutt-users@xxxxxxxx
 
- Subject: Re: folder-hook commands
 
- From: Kyle Wheeler <kyle-mutt@xxxxxxxxxxxxxx>
 
- Date: Wed, 6 May 2009 10:23:46 -0500
 
- 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; s=default; bh=rcZeQf+VMmL8mlO2lEE2mhx1OvU=; b=W1Cu	ZYHtp5AQGyNqKEgtviBHaO1kCe4jENrm7T1+ow0KGh48GWiCeuK+/cMzeNnfGPcm	OBWY+wF+WjP54L+Xz2hkElPxQQNTkgtoisB0l2VtflLpPv3ub7fVwT7DKrnZM2WG	CS6fH/JvyE5SL0tGwMBpcw0hQEUDPht8PavKNls=
 
- Domainkey-signature: a=rsa-sha1; q=dns; c=nofws;  s=default; d=memoryhole.net;  b=FfWm3v/1DEY7znn2tUwqm5StJlZyfx7lQfrLW+yV3BMGuOizmgmjizXjargBZ5Ei39vReWpIIbYyJWYHLhwMEuHqwT6cpVzClpR58BCQ5DTJOWPxMX1mtpbqxzL/9Xy/KHiyjTPncj8gg+TDic+sGsV/mLQAuirf9iW6JFY/FlY=;  h=Received:Date:From:To:Subject:Message-ID:Mail-Followup-To:References:MIME-Version:Content-Type:Content-Disposition:In-Reply-To:OpenPGP:User-Agent;
 
- In-reply-to: <20090506133326.GA8924@xxxxxxxxxxxxxxxxxxxxxxxxxx>
 
- 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
 
- Openpgp: id=CA8E235E; url=http://www.memoryhole.net/~kyle/kyle-pgp.asc; preference=signencrypt
 
- References: <20090505160912.GA14629@xxxxxxxxxxxxxxxxxxxxxxxxxx> <20090505185119.GH3399@xxxxxxxxxxxxxxxxxx> <20090506133326.GA8924@xxxxxxxxxxxxxxxxxxxxxxxxxx>
 
- Sender: owner-mutt-users@xxxxxxxx
 
- User-agent: Mutt/1.5.13 (2006-08-11)
 
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Wednesday, May  6 at 03:33 PM, quoth Alex Huth:
> Now i get the reverse sort as default, threads in freebsd-current 
> and the error "unknown command" for freebsd-acpi. It seems that 
> "source xxxx" is the problem. But if this is a unknown command in 
> folder-hooks,
It's not an unknown command. Like Michael said, it's probably 
something going wrong in the file that you're sourcing.
> how can i set multiple values for a folder?
There's LOTS of ways to do that. You don't need an extra file. The 
most obvious way is to just create multiple hooks:
    folder-hook =freebsd-acpi 'set sort=last-received'
    folder-hook =freebsd-acpi 'set sort_aux=size'
They will both be triggered for the freebsd-acpi folder. But, if you 
prefer, you can combine them into a single hook. Just do this:
    folder-hook =freebsd-acpi 'set sort=last-received sort_aux=size'
Another way of doing multiple commands from a single hook is to 
separate them with a semicolon, like this:
    folder-hook =freebsd-acpi 'set sort=last-received; set sort_aux=size'
And you can break that into multiple lines like this:
    folder-hook =freebsd-acpi 'set sort=last-received; \
    set sort_aux=size'
Does that make sense?
~Kyle
- -- 
Patriotism is the last refuge of a scoundrel.
                                                     -- Samuel Johnson
-----BEGIN PGP SIGNATURE-----
Comment: Thank you for using encryption!
iD8DBQFKAauCBkIOoMqOI14RAjsnAKCs6ijna9rxJFXXPfqleVKH4Mo7hACfXEja
E3s2Et0sYUwOwwWx5VQPw9E=
=IrU9
-----END PGP SIGNATURE-----