These notices are currently passing listname and shareurl as custom substitutions to C4::GetPreparedLetter, so I'm not sure if that case has been handled for Template Toolkit syntax yet. If not, that would need to be done first.