OS X El Capitan mail folder issue
It is a common issue, your data did not disappear. Just go to the tab "Mailbox" in Apple mail and than click "Synchronize". All your mails will be downloaded from the servers they were on.