Re: Archiving
- To: mutt-users@xxxxxxxx
- Subject: Re: Archiving
- From: Kyle Wheeler <kyle-mutt@xxxxxxxxxxxxxx>
- Date: Fri, 13 Feb 2009 21:23:04 -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=scrp0YZOvlEic7mjJPsL8sLTRC4=; b=IiZC AaEkLKx38yHXEJq0y01wV2V8XHoMMzuO81JBwtrDBGI3RmMsgRtMjfUOlE9K6+pK rACb/WfrEbxRes0ZQQwMlULBO/0oOy0or8xb4wENPA50ZkPPO9CiAkEQwWtM7eaN 2/4h9zg9R/v5gkTqZKYfAR10LhL+5iF15Kr25So=
- Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=default; d=memoryhole.net; b=NLplK39x6KCFgAjxIKLSM5+AoyCrOm4yo/ctQ5OYFx60VCgag/dfifQPgCmO2dGp5P41oBpn7nc5v2QMv1mMc51YO9eQzFWJs4E6/A4DRVOjhr1Le5XZURDDHW36byxVjSj5+CyG1wnX9Sm8zzQUzTHb1qymDRe4wWjnaZm1vIw=; 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: <20090214023751.GA28074@xxxxxxxxxxxxxxxxxxx>
- 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: <dddf9a630902121326m30883660me3a184e8ac7965d9@xxxxxxxxxxxxxx> <20090212220012.GZ1528@xxxxxxxxxxxxx> <20090214023751.GA28074@xxxxxxxxxxxxxxxxxxx>
- Sender: owner-mutt-users@xxxxxxxx
- User-agent: Mutt/1.5.19 (2009-01-27)
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Friday, February 13 at 09:37 PM, quoth Javier Rojas:
> however, this doesn't catch all the messages of the threads of the
> matched messages (the idea behind the addition of ~() ). I think
> this is caused because I also have another folder hook to collapse
> automatically all the threads
That would do it.
> so now I'm working around this with this new version of the hook
>
> folder-hook =inbox 'push
> "<collapse-all><tag-pattern>~(~r>3m)<enter><tag-prefix-cond><save-message>=archivos/inbox<enter><untag-pattern>~A<enter><collapse-all>"'
Which has the obvious problem when there are no tagged messages. :)
I've wrestled with the same problem.
> Any ideas on how to solve this?
Yes! Here's the key observation that allows us to solve the problem:
tagged messages will get moved, even if they're collapsed, but
collapsed messages don't get tagged.
So, the workaround is all about ordering; you have to work in the
following order:
1. make sure everything is uncollapsed
2. tag the messages you want
3. collapse things
4. use tag-prefix-cond to operate on the tagged messages
Don't worry, it took me a while to figure that one out too.
~Kyle
- --
Science has proof without any certainty. Creationists have certainty
without any proof.
-- Ashley Montague
-----BEGIN PGP SIGNATURE-----
Comment: Thank you for using encryption!
iEYEARECAAYFAkmWORgACgkQBkIOoMqOI1729wCg2NpPq1tkwEkd3ikdO6W33L6y
HBUAnRcbo3T5w2eusNLyufy90lmOpsy7
=HOAr
-----END PGP SIGNATURE-----