Location of emails with kmail

I need to recover my emails after a problem updating my system.
The system no longer boots and I wish to recover my emails and then do a fresh install. I was using kmail.I just need to locate where the emails are stored.
Thank you

According to my search-fu the default location was $HOME/.local/share/local-mail

Previous versions used $HOME/.kde/share/apps/kmail/mail/ or even earlier ~/MAIL

But it is also configurable so it could really be anywhere.