For deleted emails that keep reappearing in your inbox, you should make sure they are archived or deleted permanently on the server. As for read emails that reappear as unread, I.e. showing you a notification of a new email, you simply have to increase your 'number of emails to load' to 'total'...