default location of mail email account data in IMAC

Hi I have configured my email in mail option in my imac , as a pop account , now I have removed it from my mail and reconfigured again , but my mailbox seems empty ,
want to know where is a default location of my email where the mail data was stored so that I can retrieve my emails
please advice
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Mail is stored in /users/username/library/mail

or pull down the "GO" menu in Finder to "Go To Folder" and copy and paste the following line into the dialogue box and press Return:


However, if you deleted the account, you have probably deleted the mail as well. Do you have a Time Machine backup to retrieve it from?

You are better off configuring the account as IMAP if that option is available as all your mail is then stored on the server.
As far as I know, when you delete a pop account from Mail App, the messages are deleted as well. And also, as I remember, Mail App it give you a pop-up windows which alerts you about that ... beware, if you delete an account which is pop, the messages will be deleted to. I don't know the exact message pop-up, I don't have access to an MacOS right now ...
When you configure a POP account, you must be very careful to set the Leave Messages on the server option, or all mail will be downloaded and deleted from the server.  Once you delete your mail, it's gone.

You can attempt to recover the data with data recovery tools, but if you've been using your OS, you've likely written to your disk and overwrote some of that data.  Unless you have time machine, or some other backup, that data's all gone.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
sanjeevkmrsAuthor Commented:
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Mac OS X

From novice to tech pro — start learning today.