At first I used conehead's fix, but the problem persisted. I then used Shelly9795's fix and it solved the problem. Deleting just the emails on my computer was not enough. I had to delete the sent.dbx...