Using user agent to detect the source of the message.