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: Sun, 23 Sep 2007 02:13:40 -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=ygZuULTjgRVlz0jUeuyBi+BWb7c=; b=ELqfJeMUojHRCj/cuw3AxlUSbtGXUflv1zxdmhrAWTtZvdLWzWaI5x9M1sU+Oa6c0oyHNIonSFcksKbR97tKz8PxekW9YFNguFh35ooQSLOOrnRC0ZRUHnXLqb2lH9Mv76cp35sDdrFUh0KArtCw8qVtxdXC1DkP2fEdDJaXs+Y=
- Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=default; d=memoryhole.net; b=JJk0jZ5/4B/abbSqEauFe6d6u21kzQ0uGIUPytor3Anul/CW2dxDrdvh6P3HCkUnvm9xaPaFnsOAKqnOTh/nZ1L+ka+WszPeSiXWuMyKqwbDqFPAmX2nYgjTKYsJ4VKh9zzFqGPuv7p08Qxg0THb6CdJsjBcoio0BIz3nkmgH7E=; 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: <20070922221755.GA11694@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> <20070920145020.GJ8500@xxxxxxxxxxxxx> <20070922221755.GA11694@xxxxxxxxx>
- Sender: owner-mutt-users@xxxxxxxx
- User-agent: Mutt/1.5.16 (2007-09-10)
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Sunday, September 23 at 12:17 AM, quoth M. Fioretti:
>> 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'
>
>Thanks for the pointer, but I must be still missing something. First
>of all, the syntax above doesn't work here when I test the tag-pattern
I was just copying your syntax, assuming that you'd at least gotten
the tag patterns to do what you wanted.
>When I put everything together in a macro, with or without the comma
>after "macro index":
>
>macro index ,S '<tag-pattern>~h "List-Id: CentOS mailing
>list"<enter><tag-prefix><save-message>+2007.09.centos<enter><tag-pattern>~h
>"List-Id: For users of
>Fedora"<enter><tag-prefix><save-message>+2007.09.fedora<enter><tag-pattern>~h
>"Mailing-List: contact
>users-help@xxxxxxxxxxxxxx"<enter><tag-prefix><save-message>+2007.09.oo_users'
>
>something happens, but is not what I want.
Well, that should be pretty close, but let's build it up from the
basics first. First, try this macro:
macro index ,S '<tag-pattern>~h "List-Id: CentOS mailing list"<enter>'
Does that tag all the right messages? Next, add the next piece:
macro index ,S '<tag-pattern>~h "List-Id: CentOS mailing
list"<enter><tag-prefix><save-message>'
That should bring up a save-message prompt. Does it? If it does, add
the next piece:
macro index ,S '<tag-pattern>~h "List-Id: CentOS mailing
list"<enter><tag-prefix><save-message>+2007.09.centos<enter>'
Now what does that do?
Follow the same process to build up the rest of the macro, and figure
out where it's going wrong.
~Kyle
- --
Those who do not understand Unix are condemned to reinvent it, poorly.
-- Henry Spencer
-----BEGIN PGP SIGNATURE-----
Comment: Thank you for using encryption!
iD8DBQFG9hIkBkIOoMqOI14RAlYbAJ9qQDgnt+dNun3qcd36mZydKaeWQACeIzZr
1Wvt+qiOU27iE8EqQS3Gtc8=
=ChKk
-----END PGP SIGNATURE-----