* On 12 Jan 2011, Xlii wrote:
> Hi mutt,
>
> I want to dynamically form a greeting line base on the "To:" field.
Use piped commands as format strings. For example:
set attribution='custom_script "%n" "%[%c]" |'
custom_script:
#!/bin/sh
name="$1"
case "$name" in
*larry*) custom="Bonk!";;
*moe*) custom="Eyepoke!";;
*curly*) custom="Noink noink noink!";;
*) custom="Hi $name,";;
esac
echo $custom
echo
echo "On $2, you wrote:"
I have not tested any of this.
--
David Champion * [email protected] * IT Services * University of Chicago