Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.5.0
Thanks, I installed the obvious patch for that as trunk bzr 117292.
This bug does not appear to be a regression so the patch is going into
the trunk, and should appear in the release after the next Emacs release.