Fix mail message template

There was a bug with mail plugin reported by @folex.

cc @rexim