This question has what seems to be a useful title, and in fact the answer provided does answer that question. However, the body of the question goes off on a tangent that is going to be unhelpful to most people.
Should the question be rephrased to just ask about what message signing does in the Bitcoin client?