This forum has been archived. All content is frozen. Please use KDE Discuss instead.

IMAP capabilities and default folders

Tags: None
(comma "," separated)
Horus
Registered Member
Posts
296
Karma
0
OS
Hey!

Two questions about IMAP and KMail 4.10.5.

I administer my own courier-imap server and plan to return with my mail traffic from Google back to self-hosted. Server Info from kmail shows:
Code: Select all
IMAP4REV1
UIDPLUS
CHILDREN
NAMESPACE
THREAD=ORDEREDSUBJECT
THREAD=REFERENCES
SORT
QUOTA
IDLE
AUTH=PLAIN
ACL
ACL2=UNION

Is there anything important missing or something I could improve on the server side?

I've created a new IMAP mailbox (maildirmake on the server) and set it up with kmail. There are no folders but Posteingang (Inbox). Where are the other default folders (draft, trash, sent, ...). Is Kmail supposed to create them or is this server business?

Thanks!
User avatar
einar
Administrator
Posts
3402
Karma
7
OS
It should be the server's business: then you can set them in the account's properties. Unless you have auto-create capabilities in the server (I know Dovecot does, not sure about Courier).


"Violence is the last refuge of the incompetent."
Image
Plasma FAQ maintainer - Plasma programming with Python
Horus
Registered Member
Posts
296
Karma
0
OS
I don't think courier-imap has.

I've created a top-level folder named trash and set it as trash in the accounts's properties. It changed the icon, and worked as trash. I furthermore expected kmail to i18n the folder's name (Papierkorb) and move it to the same hierarchy level as the inbox. Is the name wrong or it's just not the expected behavior?
User avatar
einar
Administrator
Posts
3402
Karma
7
OS
KMail respects whatever is the hierarchy on the server. For IMAP based folders, IIRC the names are not translated (but they get special icons if you mark them as special folders - trash etc. - in the account properties dialog).


"Violence is the last refuge of the incompetent."
Image
Plasma FAQ maintainer - Plasma programming with Python
Horus
Registered Member
Posts
296
Karma
0
OS
Ok, I've tried Thunderbird on Windows. It creates the folders when used (Sent is created when sending a mail) and translates them. There is no problem creating the folders manually, but there are standard IMAP folder names (Sent, Drafts, Trash). These names I need to look up before creating the folders in KMail. Having the entire UI in German and only these folders in English is a kind of disruption I think.

There seem to be some other IMAP woes around.

- Renaming a folder does not work. The folder name change for a fraction of a second but changes back
- Creating folders does not work. I've created two folders, they are neither visible by KMail nor they are on the server.
- Deleting a folder does not work. The folder disappears for a second and then reappears with empty content, same on the server side.
- Emails that are present in the server maildir and show up in Trojita do not show up in Kmail (clicked Check for new mail various times).

What is the state of IMAP support in KMail / Akonadi?

Before setting up the account I've cleared my akonadi / kmail config using:
Code: Select all
rm -rf .config/akonadi
rm -rf .local/share/akonadi
rm -rf .local/share/local-mail

rm -rf .kde4/share/apps/nepomuk
rm -rf .kde4/share/apps/kmail2
rm -rf .kde4/share/apps/emailidentities

rm -rf .kde4/share/config/akonadi*
rm -rf .kde4/share/config/emaildefaults
rm -rf .kde4/share/config/emailidentities
rm -rf .kde4/share/config/specialmailcollectionsrc
rm -rf .kde4/share/config/kio_nepomuksearchrc
rm -rf .kde4/share/config/kmail*
rm -rf .kde4/share/config/mailtransports
rm -rf .kde4/share/config/nepomuk*

and did a reboot.


Regards...
User avatar
einar
Administrator
Posts
3402
Karma
7
OS
What is the state of IMAP support in KMail / Akonadi?


It works pretty much reliably. I've had no issues with IMAP for the past three releases (running Dovecot 1.2 first, then 2.0). Can you check the server logs and .xsession-errors for clues when you attempt to do these steps which cause the issues you have described?


"Violence is the last refuge of the incompetent."
Image
Plasma FAQ maintainer - Plasma programming with Python
Horus
Registered Member
Posts
296
Karma
0
OS
Absolutely nothing related to kmail or akonadi in .xsession-errors beside some KCoreConfigSkeleton::writeConfig messages.

Neither on the server but login/logoff messages on the current log level.

akonadi-console debugger shows something that might be interesting:

Code: Select all
AgentBase(akonadi_imap_resource_0): Select failed, server replied: A000360 NO Mailbox does not exist, or must be subscribed to.

a couple of times with different A000XXX.

Creating a folder cause a login on the server and

Code: Select all
AgentBase(akonadi_imap_resource_0): Create failed, server replied: A000004 NO Invalid mailbox name.


After deleting the server side subscription data, restarting the server and akonadi imap ressource it seems to work. I can create foldes but still not delete:

Code: Select all
AgentBase(akonadi_imap_resource_0): Fehler beim Löschen des Ordners, die Ordnerliste wird wiederhergestellt.

localized error messages?? Translation: "Error while deleting folder, the folder list will be restored."

If someone want to do some debugging I can provide a mailbox account on the server for testing.

Regards,
Florian
User avatar
einar
Administrator
Posts
3402
Karma
7
OS
Please file a bug on bugs.kde.org with these detailed error message and keep the offer for testing. This will make sure that developers will look at it.


"Violence is the last refuge of the incompetent."
Image
Plasma FAQ maintainer - Plasma programming with Python
Horus
Registered Member
Posts
296
Karma
0
OS
I've recreated the mailbox on the server-side and it seems that the problems were at least partly caused by a faulty server-side filtering script. It created a folder that was existent but not accessible (a MBOX file, not a MAILDIR) which my also have confused the server.

Right now it works fine, except two points:

- I except the special folder names (Sent, Trash, ...) to be translated. English folder names in a otherwise i18n GUI looks ****.
- You need to know the standard names for these folders if you want to use them in a interoperable way. It would be nice if KMail offers to create them.

But points are not clearly bugs... I'll file them as as wishlist item, if not existing yet.


Bookmarks



Who is online

Registered users: Bing [Bot], Google [Bot], Yahoo [Bot]