Well, just that really - is there a thought process that goes "I'm happy/scared etc therefore I shall wag/drop my tail between my legs"?
DH thinks it is more like a penis (sorry) in that it's state is indicative of the mindset of its owner, but not something the owner has any direct control over.
What do you think?