Re: Grouping commands in muttrc?
- To: mutt-users@xxxxxxxx
 
- Subject: Re: Grouping commands in muttrc?
 
- From: Kyle Wheeler <kyle-mutt@xxxxxxxxxxxxxx>
 
- Date: Thu, 24 Jan 2008 10:09:28 -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=Tya33SuXd7erakhzP0IODYJQ3a	g=; b=YwyU1fbyGHFBTUz0YdZqa4UymmMsp6rEH1KtjG9ag5O9ib8spMwlqxgTW0	CkD101Wngm2b9Cg5w/YTA2zavRes9xxPtrey7Ckqp6qrU0azDWFyDgBKvh2IZuNz	cJt/uOZFpOx8daBEuhFvAHrWGloePHpj7uK8ErtMI4/Qd83h4=
 
- Domainkey-signature: a=rsa-sha1; q=dns; c=nofws;  s=default; d=memoryhole.net;  b=GQS5hB8jo1Vrt8/rvULkXbiO1pGVSEVgFwEkfv8VLQtju/M968BhLPuomNIw8K6ZUD+xoO2XKM7auf6kt9j6/E99upKx9kztRwXuWJ/vdkfva6UUiiW8/jkHMozl/lMTTwE2dp3ZQ9lIKwqQQluXAUUKQF2t7+6nwPITB/7VboE=;  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: <20080124152942.GA1493@xxxxxxxxxxxxx>
 
- 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: <20080124152942.GA1493@xxxxxxxxxxxxx>
 
- Sender: owner-mutt-users@xxxxxxxx
 
- User-agent: Mutt/1.5.17 (2008-01-14)
 
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Thursday, January 24 at 04:29 PM, quoth Dan H.:
> please note that I'm sending this from mutt. It was an uphill battle 
> and I'm still not sure if I won, but I'm getting there.
So far so good! The message made it!
> One question: Is it possible to group commands after, for instance, 
> a folder-hook? Like when I move into a folder I want a whole bunch 
> of commands executed. Or do I have to put those into a file and 
> source that with the folder-hook?
Yup, you can put several commands in a folder-hook; you just have to 
separate them with semicolons and put them all in a single quote 
block. They can even span multiple lines, like so:
     folder-hook . 'set ascii_chars=yes ; set othervariable=no ; \
                    set thirdvariable=ask-yes'
~Kyle
- -- 
Do not seek to follow in the footsteps of the men of old. Seek what 
they sought.
                                                        -- Matsuo Basho
-----BEGIN PGP SIGNATURE-----
Comment: Thank you for using encryption!
iD8DBQFHmLg4BkIOoMqOI14RAl0HAJ9wEh6SRBXGnySSYxw3oGpoGSMfNQCgnnei
slLvPspxQUtn0DWAjeQ57as=
=fkw4
-----END PGP SIGNATURE-----