A new study has found that people who get a poor night’s sleep are more likely to send rude work emails in the morning.