How to copy only the email address from Apple Mail

I quite often need to copy and paste someone’s email address from an email inside Apple Mail. If you do this by right-clicking on someone’s email address like and copy it, then paste it into another application it will show up as “Richard Mallion < “, which can be fairly annoying if you just want the email address.
Help is at hand with the terminal. You can change this behaviour so that only the email address is copied.
To do this, launch Terminal and paste this line into the command line:

defaults write AddressesIncludeNameOnPasteboard -bool false

Then relaunch Mail app for the changes to take effect.