Bug 292285 - Cannot specify IMAP server directory
Summary: Cannot specify IMAP server directory
Status: REPORTED
Alias: None
Product: kmail2
Classification: Applications
Component: general (show other bugs)
Version: 4.7
Platform: Ubuntu Linux
: NOR wishlist
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-01-23 19:09 UTC by Davor Cubranic
Modified: 2019-04-17 16:09 UTC (History)
6 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Davor Cubranic 2012-01-23 19:09:10 UTC
Version:           4.7 (using KDE 4.7.3) 
OS:                Linux

KMail 4.7.3 on KUbuntu 11.10 (Oneiric)

When accessing my mail server, KMail shows (and tries to index) all files in my home directory. The problem is that the mail server uses IMAP folder ("~/Mail"), but I have no way to specify this in KMail 2 account configuration. (E.g., with Thunderbird, and I believe KMail 1, there was an option "IMAP server directory" in account configuration dialog.)

Reproducible: Always

Steps to Reproduce:
1. configure a new account using an IMAP server that uses IMAP folder.

Actual Results:  
All files and directories under my home directory will be treated as mail folders.

Expected Results:  
Only the actual mail folders will appear in the UI and be treated as such.
Comment 1 Laurent Montel 2012-01-24 14:21:15 UTC
No kmail1 doesn't have it.
Comment 2 Torgny Nyblom 2012-01-24 15:13:04 UTC
What do you mean by "IMAP Server directory"?
If you connect using IMAP the server doesn't store anything on your computer nor does KMail try to access your home folder.
Comment 3 Davor Cubranic 2012-01-24 16:48:40 UTC
Torgny,

I mean the directory on the server under which the email is kept, and in Thunderbird account settings it's called exactly that: "IMAP server directory". See this screenshot:

http://support.ecenica.com/files/2011/01/IMAP-Server-Directory-Namespace-Thunderbird.png
Comment 4 Davor Cubranic 2012-01-24 17:01:58 UTC
Laurent, you're right that this was not present in KMail 1's account dialog, but I thought there was a way to specify something like it by hand-editing the configuration file. At any rate, it allowed me to access my mail server, where now I cannot with KMail2.

The value of this feature is that it would allow KMail to work with those IMAP servers that report the namespace corresponding to the user's home directory, so that KMail does not try to index every single file and folder there. (See bug 282245.)
Comment 5 Torgny Nyblom 2012-01-24 18:05:45 UTC
Ahh, that is what is called the namespace. In Akonadi that is auto detected from the servers response. If I read your reply to the other bug correctly the server responds with a namespace of "~" but that should really be "~/Mail"?
Comment 6 Davor Cubranic 2012-01-30 15:04:01 UTC
I don't know if it's necessarily the same thing -- otherwise why would Thunderbird have both, or why would my account setup specifically say: set personal namespace to "" and IMAP server directory to "~/Mail"? (See https://www.cs.ubc.ca/support/email-setup-department-users)
Comment 7 Davor Cubranic 2012-11-26 00:05:46 UTC
I don't have KMail1 running any more for comparison, but KDE's own docs say this: "If you are using IMAP, you can optionally specify a path in the Prefix to folders field [...] so that KMail does not mix up mailbox files and other files." (http://docs.kde.org/stable/en/kdepim/kmail/setting-up-your-account.html)

That's exactly what's happened to me, and why I couldn't use KMail2, and so I moved on to Thunderbird. Feel free to close this bug if it's a WONTFIX or add it to the TODO list if this is something you might want to do in the future.
Comment 8 piedro 2013-04-19 06:03:01 UTC
With KDE 4.10.2 I am still having the same problem ... This is a very essential IMAP setting for any serious IMAP use ... 

plz comment on the status, 
thx, piedro
Comment 9 Toni 2013-04-30 20:48:51 UTC
Could be that this problem isn't seen as a bug by the kmail developers? For example the developers of the HORDE webmailer see this as a bug from a special imap *server*: http://wiki.horde.org/ImpUWIMAPNamespaces