Re: rerunning hooks
- To: mutt-users@xxxxxxxx
- Subject: Re: rerunning hooks
- From: Kyle Wheeler <kyle-mutt@xxxxxxxxxxxxxx>
- Date: Tue, 23 Sep 2008 08:23:08 -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=NsmHIGC+TN2gvI2JQepBXXaMRbU=; b=JqEl SEhpkjMqb/j9nLbOyATnpbYsobJPq7dowTwXhaDVyWJY9QFYTJ1AY9KKYwj9mL7P qbT/FFUDLDbSZp33vBI0h61a+vIkThMvDAbxjJ/v9mb8LfnFzA+A9Ci/RwlzJGSU 9aMaAecKPsqvEqigsqrR1JQTrA78GbDyF4vRzmc=
- Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=default; d=memoryhole.net; b=cW99Z20WIOy0gTxBxlDhvUbahsu8pFQ/K6SXzznANeqecrd8tMQlYHojMhIWexLf6IhTj+1OsS6sdDir9i6yaPnHYstFDRS3orgmAiiDQy7PNpcbZ/yuVHTjbeQue7bt7r3TET3LNhbJlNPZCHQyS9uqO25/VboBowhz+jOP5BI=; h=Received: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: <20080923085826.GA17527@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: <20080923085826.GA17527@xxxxxxxxxxxxxxxxxxxxxxxxxx>
- Sender: owner-mutt-users@xxxxxxxx
- User-agent: Mutt/1.5.18 (2008-08-31)
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Tuesday, September 23 at 10:58 AM, quoth martin f krafft:
> After re-sourcing my config, all the colouring and similar stuff
> I do in folder_hooks is overwritten. Is it somehow possible to rerun
> all applicable hooks as part of the resourcing?
Not really, because it's impossible to know which hooks "apply". Hooks
are associated with actions, not with states. The send-hook applies
whenever you attempt to *send* a message, the message-hook applies
whenever you attempt to *view* a message, and so forth. If you are
currently sending a message, but are relying on a setting that was set
by viewing a message (or perhaps are relying on the fact that the last
message you sent triggered a hook), how is mutt to know?
~Kyle
- --
Arguing with an engineer is like wrestling with a pig in mud, after a
while you realize the pig is enjoying it.
-- Unknown
-----BEGIN PGP SIGNATURE-----
Comment: Thank you for using encryption!
iEYEARECAAYFAkjY7bwACgkQBkIOoMqOI16jnACeJg0JrvfC8njyPf60P5Habix0
KNkAoITcpMcfA2HBNDZYfzrv6YbsGuTr
=liNm
-----END PGP SIGNATURE-----