Restart and open Mail. It will rebuild everything fine.
Post
Replies
Boosts
Views
Activity
Moving the ~/Library/Mail folder out to the Desktop and letting Mail remake the folder worked for me in this Case too as described here: https://developer.apple.com/forums/thread/649882