<<< Date Index >>>     <<< Thread Index >>>

Re: storing tagged state?



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

On Thursday, July 16 at 11:52 PM, quoth lee:
>is it possible to store which messages are currently tagged, to do
>something and then to restore the previous tags?

Sure, it's possible. Not *easy*, but possible. The way I'd suggest is 
to have your macro pipe all tagged messages to a script that saves 
their message-id headers... this is a trivial example that I haven't 
tested, but you get the idea:

     awk '/^Message-ID: /{print "push \"<tag-pattern>~i",$2,"<enter>\"}' \
     > /tmp/mutttags

That'll save off all the message ID's. Then you can clear the tags and 
do your macro work. Next, you need to restore the tags... all you need 
to do is source the temporary file you created.

~Kyle
- -- 
You can gain reconciliation from your enemies, but you can only gain 
peace from yourself.
                                        -- Rubin "The Hurricane" Carter
-----BEGIN PGP SIGNATURE-----
Comment: Thank you for using encryption!

iQIcBAEBCAAGBQJKYB/eAAoJECuveozR/AWeZFkP/3xYhSsjxWsg11seGYUFNnR4
KgnWOkSlfy4VcvE+jbIDYfSKab+KpGqW41EmCaXQY6mvdWnwgAzoWycQCDPzJM0W
ts+xl9P0uWuskoTvGHSq8GbDPd3GodceIKR80zItiJUH7MHcaN4sdauOgcklVfwM
W5PxIi27F9QxF9c/gMYmf8Xd7pnLyItrYTeEXS7e3aCxBaVRLwZD1g6oxPSZ+vRd
UC0oxsyJyVzJhPxGAu5r/JAIC5aiRais6jTCxuCjE1d+R55mK6zjZDJ0czoq2lJb
wck4wi1nOUKZDQ2uYDwUNvJr78aJIR3QFJ1RnHt2YP7PCy0klA0AobnnZo2SwzHT
QwrKx5dRVBQD4N/uVE5s3P9/GmaPRbDjMjA1FoHHIGurV627k52+MvyCwiHqBOaU
XWFMr4eZcRgRS0GgoSBypToqWeCK+GaC1hfl/CexFs5gx52yodgpYiatbrdyVPrY
qSyAdWEX+SGuGHjQoDptw+8GoPOvpdRHgnCghBAkx9wd+z1j7U1SwtrSQl6qEDe7
nPLFmUzrOXB3vSQXpG4flAL1dyHT1AWqT6g5nIupM6GXancyZJjOhImPjrUG5Rs6
55EybaWUJy4Ua/vO00GWqDyZO9YPG5PKWLmgaqYOZAuqk+3EsWhVbNsUfha2Nxff
qkGyN2X/Vmr8t0tws4e/
=F7/3
-----END PGP SIGNATURE-----