Hm, it might not be a bug in Mozmill. I think that's even a good thing that Mozmill already expands the stack as an array. I totally missed that.

I wouldn't squash it down to a string here but handle the individual entries in the template. That way we could add links to the source code later, which this join() would prevent us from.