Researchers from Harvard University in the US analysed 3.6 million patient messages from more than 511,000 people.