Bug 85903 - International characters in IMAP folder names doesn't work (kmail shows error messages when analysing IMAP account)
Summary: International characters in IMAP folder names doesn't work (kmail shows error...
Status: RESOLVED UNMAINTAINED
Alias: None
Product: kmail
Classification: Applications
Component: IMAP (show other bugs)
Version: 1.10.1
Platform: Mandrake RPMs Linux
: NOR normal
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords: triaged
Depends on:
Blocks:
 
Reported: 2004-07-25 00:52 UTC by Michał Jaskólski
Modified: 2015-04-12 10:20 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
"Before" is the correct one, "After 1" and "After 2" show the aforemented bug (23.88 KB, image/jpeg)
2006-03-13 20:47 UTC, Gustavo Michels
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Michał Jaskólski 2004-07-25 00:52:12 UTC
Version:           1.6.82 (using KDE KDE 3.2.3)
Installed from:    Mandrake RPMs
Compiler:          gcc version 3.4.1 (Mandrakelinux (Cooker) 3.4.1-1mdk) 
OS:                Linux

When I start kmail and check my IMAP account with folder names with international characters, such as "ł" or "ś", it shows the following message box:

--------------------------------------------------
I cannot open the file /home/michal/.kde/share/apps/kmail/imap/.153828104.directory/.INBOX.directory/.Archiwum.directory/.partnerzy.directory/Z%3FoteNo such file or directory0My%3Fli

%2
--------------------------------------------------

"michal" is my username and my IMAP folder name is /Archiwum/partnerzy/Złote Myśli

As I have over 20 folders with international characters, the message box above shows over 20 times :(
Comment 1 Till Adam 2005-01-01 18:27:19 UTC
This is no crash.
Comment 2 Carsten Burghardt 2005-01-02 12:17:50 UTC
Interesting as I just created a folder with this name on my courier server and 
kmail HEAD has no problems with it. Do you get any errors when you open the 
subscription dialog?

Comment 3 Gustavo Michels 2006-03-13 20:41:35 UTC
I have somewhat the same problem, but I chose to add a comment here instead of creating a new bug. If you think it's better to file a new bug, please tell me so.

Versions used:
- Linux x86
- KDE 3.5.1
- KMail 1.9.1
- compiled from sources (Gentoo packages, with gcc 3.4.5)

On my dIMAP setup (Courier), I have a folder called "Curriculos". In Brazilian Portuguese, the correct way to write it would include an acute on the i ("Currículos"). In KMail, I can create the folder with the acute, synchronize it, move/copy messages and so on, normal operation.

However, after a random KMail relaunch (actually Kontact, as I use it from Kontact), there's a new empty folder with strange characters where the i with acute should be. I can delete this folder, but after another relaunch, it's there again, but this time there are two new folders with different strange characters, which are even different from the first one! One is empty and the other has the same content as the original one (with the acute). See attached images to a better visualization.

If I don't delete these empty folders, upon KMail relaunch I get an error dialog saying "Error while uploading folder".

One last comment: it doesn't happen *every* time I relaunch KMail. It looks like it's random, and I couldn't find a way to reproduce the error with 100% accuracy.

If you need further information, please ask. Thanks
Comment 4 Gustavo Michels 2006-03-13 20:47:43 UTC
Created attachment 15097 [details]
"Before" is the correct one, "After 1" and "After 2" show the aforemented bug
Comment 5 Michael Leupold 2008-08-31 12:34:00 UTC
I can still confirm this on trunk r855160. I created the following folders on my GMail dIMAP account:
international/äöü 
international/ÛÝàâæ 
international/ڱڵڶڥ 
international/ርማሜም 

I could add those folders and they were synced to my IMAP account without trouble. However on restarting kmail the 3rd and the 4th folder disappeared and were replaced by a folder named "???" (which seems to correspond to the 4th folder regarding the mail count). As the folder name looked like that on restarting (without network activity) I think it might be a dIMAP cache issue.
Comment 6 Laurent Montel 2015-04-12 10:20:02 UTC
Thank you for taking the time to file a bug report.

KMail2 was released in 2011, and the entire code base went through significant changes. We are currently in the process of porting to Qt5 and KF5. It is unlikely that these bugs are still valid in KMail2.

We welcome you to try out KMail 2 with the KDE 4.14 release and give your feedback.