To some degree you can do that now with $editor and edit-message, right? set my_editor=$editor set editor="my-script %s" <edit> set editor="$my_editor"
my-script: #!/bin/sh sed -e 's/^X-Label: /' ... However that's a workaround, and I see that this isn't really what you're asking about. Perhaps a good approach would be use a generic filter_header function that can be easily hooked into any header or message attribute editing function. Just thinking in public about design -- I'm not proposing to do this real soon now. :) * On 12 Mar 2013, Vincent Lefevre wrote: > I'd like to be able to execute a script (this can be an option) for > changing X-Label, e.g. if the string starts with the | character > (or have a different function for that). The script could take the > current X-Label value an input and output the new value. -- David Champion • [email protected]
