Re: changing subject of all messages in a thread
also sprach David Champion [EMAIL PROTECTED] [2008.05.06.1919 +0200]: prompt would be handy. Meanwhile, you might try something like: $ cat mutt-subject-edit [...] :source mutt-subject-edit | [tag some messages] tag-prefixedit-message http://git.madduck.net/v/etc/mutt.git?a=commitdiff;h=d215fb8c4bb24685149e374ced9ab2fa5c2fd21e seems to work ok. Thanks, David! -- martin | http://madduck.net/ | http://two.sentenc.es/ wovon man nicht sprechen kann, darüber muß man schweigen. -- wittgenstein spamtraps: [EMAIL PROTECTED] digital_signature_gpg.asc Description: Digital signature (see http://martin-krafft.net/gpg/)
Re: changing subject of all messages in a thread
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Tuesday, May 6 at 03:36 PM, quoth martin f krafft: But... can it help me change the subject line for messages that are part of a subthread? I know how to set $editor to get it to do this automatically, but how do I convince mutt to spawn the editor on all tagged messages or messages of a subthread without manually iterating? Easy: tag them all, then press ;e To make tagging easier, you can use patterns (T) ~Kyle - -- Almost everything about a human creature is ridiculous, except its ability to suffer bravely and die gallantly for whatever it loves and believes in. The validity of that belief, the appropriateness of that love, is irrelevant; it is the bravery and the gallantry that count. -- Robert A. Heinlein, Job: A Comedy of Justice -BEGIN PGP SIGNATURE- Comment: Thank you for using encryption! iEYEARECAAYFAkggjyYACgkQBkIOoMqOI16eBACg37w5mcKGd1xEN5c1l1mgGeT7 /voAn05RahaHtZMXc6goahooieScheCm =HahC -END PGP SIGNATURE-
Re: changing subject of all messages in a thread
part of a subthread? I know how to set $editor to get it to do this automatically, but how do I convince mutt to spawn the editor on all tagged messages or messages of a subthread without manually iterating? set editor=perl -pi -e 's/^Subject: .*/Subject: mwahaha/;' %s [tag some messages] tag-prefixedit-message -- -D.[EMAIL PROTECTED]NSITUniversity of Chicago
Re: changing subject of all messages in a thread
also sprach David Champion [EMAIL PROTECTED] [2008.05.06.1804 +0100]: part of a subthread? I know how to set $editor to get it to do this automatically, but how do I convince mutt to spawn the editor on all tagged messages or messages of a subthread without manually iterating? set editor=perl -pi -e 's/^Subject: .*/Subject: mwahaha/;' %s [tag some messages] tag-prefixedit-message Okay, I fell prey to having 'e' rebound. But in any case, the problem with this is that I'd like to provide a new subject line once for all messages, but not really redefined $editor every time. Ideally, I'd have a keybinding doing all this, and using e.g. $response on the right-hand-side of the regexp. Now, how do I fill $response sensibly? /me wants mutt to have a prompt function. -- martin | http://madduck.net/ | http://two.sentenc.es/ give a man a fish, and you'll feed him for a day. teach a man to fish, and he'll buy a funny hat. talk to a hungry man about fish, and you're a consultant. -- scott adams spamtraps: [EMAIL PROTECTED] digital_signature_gpg.asc Description: Digital signature (see http://martin-krafft.net/gpg/)
Re: changing subject of all messages in a thread
/me wants mutt to have a prompt function. prompt would be handy. Meanwhile, you might try something like: $ cat mutt-subject-edit #!/bin/sh printf New subject: /dev/tty read subj /dev/tty cat X set editor=perl -pi -e 's/^Subject: .*/Subject: $subj/;' %s X :source mutt-subject-edit | [tag some messages] tag-prefixedit-message Untested. -- -D.[EMAIL PROTECTED]NSITUniversity of Chicago