On Sat, Feb 14, 2009 at 01:32:42PM +0100, Nicolas Rachinsky wrote: > * Javier Rojas <jerojasro@xxxxxxxxxx> [2009-02-13 21:37 -0500]: > > 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 uncollapses, archives, and the collapses back the mailbox > > > > This, however, creates another problem: when there is nothing to > > archive, the mailbox ends up uncollapsed. > > > > Any ideas on how to solve this? > > <end-cond> in front of the second <collapse-all> should solve this. I used Kyle's approach (I read it last night ;) ). But this is also really nice. Thank you both, problem solved! folder-hook =inbox 'push "<collapse-all><tag-pattern>~(~r>3m)<enter><collapse-all><tag-prefix-cond><save-message>=archivos/inbox<enter><untag-pattern>~A<enter>"' -- Javier Rojas GPG Key ID: 0xA1C57061
Attachment:
pgpBU5JMnTZRu.pgp
Description: PGP signature