Kmail does not access directory with emails in new system

My sistem:
Fedora linux 38
KDE Plasma Version: 5.27.8

I’m using the same Fedora linux 38 and KDE version in a number of different workstations and laptops. At each box, my home directory has the same files and structure.
I’ve been using KMail to handle my emails. In all boxes, the mail files are located at
$HOME/.local/share/local-mail
and, yes, the path is set in the Local Folders configuration of KMail.
Recently, I set up another laptop with a full mirror of my home directory, but the KMail app there is not displaying my emails.
When I look at the Local Folders configuration, the folder that was set for the maildir information is
$HOME/.local/share/akonadi_maildir_resource_0
When I set back to the correct path ($HOME/.local/share/local-mail), the system created a new folder:
$HOME/.local/share/.local-mail.directory

So, what is going on here? I guess this is an akonadi issue, but I don’t know where to look.