I know from a case in which I was a defendant Yahoo can produce every email someone ever received or sent. They say they keep 3 months but under court order they can go back indefinitely.
I have email over 15 years old at yahoo, I can imagine they don’t delete, that they have backups going back to the 90s.
So can the NSA.....