> Fernando Canizo schreef: > > > This is the thing: in mutt you can flag a message as important (you > > got only one flag), also you have a 'ctrl-d' command that deletes a > > full thread. Sometimes threads get off-topic (an unconstructive > > flame > > for example) and when i realize that, and don't like the new topic i > > just 'ctrl-d' them. But what if i've flagged some message? It means > > that it's important to me, so i wanted to remain undeleted. The > > actual behaviour of mutt just delete everything. > > > > That's what the patch provides me, and with a single line of code. > > Simple. And David (the autor) do it so well that even added a new > > option for it to be in '~/muttrc' and let the default to be the old > > behaviour. So i think this patch can get to portage easily. > > > > By the way, if anyone interested, this is it: > > http://home.uchicago.edu/~dgc/sw/mutt/patch-1.5.8.dgc.flagsafe.1
This is a bit OT here (and I'm also replying to the wrong message, since I don't have the whole thread), but it seems that you can achieve the same goals without patching mutt: First, as you might be aware, it's possible to delete a subthread (bound by default to ESC d.) Second, I think you can do exactly what you want with something like: macro index \Cd "\Ct .\n<esc>tD ~T ! ~F\n" "Delete unflagged thread messages" (all in one line.) This untags all messages (\Ct .), tags the thread (<esc>t), then deletes messages which match the pattern that say the message is tagged (~T) and not flagged (! ~F). I assumed here that the key bindings are the default ones, and that you have 'delete_untag' set (otherwise you will want to untag them yourself, with an extra "\Ct ." at the end.) The only problem is that it will remove all tags you previously had. Moshe
pgpnXiUnIFucd.pgp
Description: PGP signature