Provide the RT version in mailgate user-agent, in addition to LWP's

Setting ->agent with a trailing space causes LWP to _also_ append its
own version, as it did previously.  This commit thus merely causes us to
include additional information.

Fixes I#18420.
Merge branch '4.2/rt-mailgate-agent' into 4.2-trunk