Re: question about saving emails
- To: mutt-users@xxxxxxxx
- Subject: Re: question about saving emails
- From: Kyle Wheeler <kyle-mutt@xxxxxxxxxxxxxx>
- Date: Fri, 30 Jan 2009 17:14:43 -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; s=default; bh=pcu4LPr0RhK+lG5JM8D7XicYHvA=; b=eWY0 2HmL53cQ8yusCNv64A91Y6rK0gx1PxVCAAjiqEcpc7c6aA++BM6s3FYkdN86TeOv 6N46CpaLs/isggUtwxojJKMDJPRnJ6gOGie9mcp8mfxEujWv3E1T+N35wpiRmlv2 dI5VF9qWeAohB8MFP3Il2Yl0N/sp3JrW4Ymx27Q=
- Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=default; d=memoryhole.net; b=WJAm1FodtLzLt2/OXvUHrEGzVge2X6oK5KFVi05KzC27aU+i/PHpNx4MQVdQfx6l8cd4DPIi4pO2MkH4SVWRcZtQl/AyGa0U5BywYDQ2ZtOUNAmI2icOf6O3NBNNbWGe/kFU+JF6utNtAiviH9OjlO68PXcArEX4wPIRSi64Bbw=; 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: <20090130222619.GA13176@xxxxxxxxxxx>
- 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: <20090130222619.GA13176@xxxxxxxxxxx>
- Sender: owner-mutt-users@xxxxxxxx
- User-agent: Mutt/1.5.19 (2009-01-27)
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Friday, January 30 at 03:26 PM, quoth Paul E Condon:
> When I use the 's' key to save an email to a different mailbox, mutt
> responds with a suggested mailbox name to which the email can be
> moved. This is based on the contents of headers lines in the email,
> I think.
Yeah, it's based on the sender's address.
> Is this something that is set up with a save-hook? If yes, where is
> that save-hook defined?
It's the default behavior when no save-hooks apply. That behavior is
not itself a save-hook.
> If it is built in logic can it be overriden with a save-hook?
That's exactly what save-hooks are for.
> What would be a save-hook that delivers equivalent logic to what is
> built in?
There isn't one. To my knowledge, the target of a save-hook cannot
depend on the matched pattern.
> I think I want to write some save-hooks of my own, but I'd like to
> see some working examples before I start my own creative guessing.
Mostly, I do things like this:
save-hook '%C family' =Family
save-hook mutt@xxxxxxxx =Subscribed.Mutt
~Kyle
- --
If Mr. Einstein doesn't like the natural laws of the universe, let him
go back to where he came from.
-- Robert Benchley (1889-1945)
-----BEGIN PGP SIGNATURE-----
Comment: Thank you for using encryption!
iEYEARECAAYFAkmDieMACgkQBkIOoMqOI16V1gCdH0S3kLhoa80beMJgsCV/GIFV
yHQAoInjaPx3gvGINbcTcB93pMsLFUgf
=AWqK
-----END PGP SIGNATURE-----