Unable to use Mail in OSX

Unable to use Mail in OSX

I am having issues trying to access my inbox using Mail in OS X 10.10. This is the error message I get. 

"The server returned the error: SELECT failed"

Has anybody else had this problem?