Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Children Folders not loading when parent folder has german umlauts. #497

Open
DGINXREAL opened this issue Jun 5, 2024 · 1 comment
Open

Comments

@DGINXREAL
Copy link

Hello i find a problem and i don't know how i can fix that.

When i try to load my mailbox and getFolders(), all parents are present in the collection. I have two Folders with german umlauts (like öÖäÄüÜ) in the parent list, the childrens always empty, but hasChildren() is always true.

if i rename the folders and remove the german umlauts, the folder children are loaded.

I'm using IONOS Mail Server.

As Example

  • Folder A. <- Loaded
    • Folder AA. <- Loaded
    • Folder AB <- Loaded
  • FoÖäer B <- Loaded
    • Folder BA <- Not loaded because parent has Öä
    • Folder BB <- Not loaded because parent has Öä
  • FoÖäer C <- Loaded
  • Folder D <- Loaded

Has Some one an Idea how i can fix that?

@yeli69
Copy link

yeli69 commented Jul 15, 2024

Hello,
I also had the problem with several different servers.
I replaced the following in the getFolders method in Client.php.

$pattern = $folder->full_name.$folder->delimiter.'%';
replace with :
$pattern = $folder->path.$folder->delimiter.'%';

That worked for me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants