Re: one macro to save many messages in different folders?
- To: mutt-users@xxxxxxxx
- Subject: Re: one macro to save many messages in different folders?
- From: Kyle Wheeler <kyle-mutt@xxxxxxxxxxxxxx>
- Date: Thu, 20 Sep 2007 09:50:20 -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; q=dns/txt; s=default; bh=xR4/1jWi22+JFkrUdG1U8ShIxnM=; b=lHPfL8EcL+JezZtRSJDrpv4M0OewjmXEF4GVyBTNYtt5QoZp3lpn9KZ8Nc9SNAo/VZESi9ItNqRrdEZbAWzn2EVoVAyE5u5fwVevLPiso+FaaPLlz8Y3T4XEYBj5E1/Q2ojQFO4kfIyhN/Nzci0zeYnUV+wskiNcBAhE/AnJi9k=
- Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=default; d=memoryhole.net; b=Kfjok95f9zrhVwvYE7DrmTaG7O5f+I5dcD0RHxlul/d6jW8Ux60P5sF6PyKjRRC16Ll0Ciqes+NiteqX8dczGVUaRnZ4Eo6TUu1+eA0jbD+Re6NzX96JDjiE8bSAEviHaNXNojj2pPo2y8I/CYs8x4ZIa4W/7gmcQx+2MVn8MdQ=; 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: <20070919204739.GD4517@xxxxxxxxx>
- 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: <20070919204739.GD4517@xxxxxxxxx>
- Sender: owner-mutt-users@xxxxxxxx
- User-agent: Mutt/1.5.16 (2007-09-09)
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Wednesday, September 19 at 10:47 PM, quoth M. Fioretti:
>For several reasons not really relevant here, I have the messages of
>several mailing lists delivered to one common inbox folder. When I
>have read them, I want to tell mutt, with one keystroke, to look at
>all the messages I have tagged and save each of them to the folder
>corresponding to its mailing list. What if I do something like:
>
>message-hook '~h ?List-id Centos' 'save-hook +centos'
>message-hook '~h ?List-id OpenOffice' 'save-hook +openoffice'
>message-hook '~h ?List-id someotherlist' 'save-hook +someotherlist'
>
>what happens when I type ";s" ? will mutt do the right thing, that is
>using all those hooks save each message to the folder it belongs to
>according to the rules above?
No. Message-hooks only trigger when you *view* a message.
>If not, what is the right method to do it?
Use a macro that will tag each category in turn, and save them to the
appropriate location:
macro index ,s '<tag-pattern>~h ?List-id Centos<enter>\
<tag-prefix><save-message>+centos<enter>\
<tag-pattern>~h ?List-id OpenOffice<enter>\
<tag-prefix><save-message>+openoffice<enter>\
<tag-pattern>~h ?List-id someotherlist<enter>\
<tag-prefix><save-message>+someotherlist'
~Kyle
- --
Science has proof without any certainty. Creationists have certainty
without any proof.
-- Ashley Montague
-----BEGIN PGP SIGNATURE-----
Comment: Thank you for using encryption!
iD8DBQFG8oisBkIOoMqOI14RAjXXAKD7FbPpMp1x3arNfaLRLF2ngiETlACgogQ7
V8E/jqETfQ/anLcagYJcW8I=
=HMtJ
-----END PGP SIGNATURE-----