THis code originally had variable replacement like this, but when the inputs started to be be fully MIME-encoded without any plain text, that stopped working. Inputs we're using have that now, so this works again, and thus this feature is restored.