Bug 117347

Summary: Doesn't save new notes on dIMAP resource
Product: [Unmaintained] knotes Reporter: Julian Mehnle <julian>
Component: generalAssignee: Christian Mollekopf <mollekopf>
Status: RESOLVED INTENTIONAL    
Severity: normal CC: chrigi_1, rjenster, vanmeeuwen
Priority: NOR    
Version: 3.5   
Target Milestone: ---   
Platform: Debian testing   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: Newly created note, missing name and content
Broke note mesage saved from DIMAP mailbox

Description Julian Mehnle 2005-11-30 15:00:48 UTC
Version:           3.5 (using KDE KDE 3.4.2)
Installed from:    Debian testing/unstable Packages
OS:                Linux

I have a Disconnected IMAP account configured in KMail as my groupware account, and I have configured KNotes to use that IMAP account.  Before I upgraded from KDE 3.3 to 3.4.2 recently, KNotes generally worked fine, but now KNotes only displays the one note that I had created before the upgrade.

If I create a new note, rename it, and type in some text, the note exists as long as KNotes isn't shut down.  If I shut down and restart KNotes (but not KMail), the new note exists, but without any content and with its original (timestamp) name.  If I shut down and restart both KNotes and KMail (i.e. by restarting the system), the new note is missing entirely.

There is an empty (sort of) item in my "Notes" IMAP folder however, which has "Content-Type: Text/plain", "X-Kolab-Type: application/x-vnd.kolab.note", and the following body:

| This is a Kolab Groupware object.
| To view this object you will need an email client that can understand the Kolab Groupware format.
| For a list of such email clients please visit
| http://www.kolab.org/kolab2-clients.html

(See the attached file for the full item.)

For every note I create, such an item is created in my "Notes" folder, but KNotes never saves the content of my new notes.
Comment 1 Julian Mehnle 2005-11-30 15:04:29 UTC
Created attachment 13688 [details]
Newly created note, missing name and content
Comment 2 Julian Mehnle 2005-11-30 15:13:27 UTC
Note that I copied the attached note file directly from the file system of my IMAP server, so there _really_ isn't any other content stored in the note item.  This is _not_ just an issue of KMail not being able to display the contents.
Comment 3 Michael Brade 2006-01-10 15:25:00 UTC
I think you should report this to the Kolab people since I don't know their code and I don't have a Kolab server running to test this on.

Their bug tracker is at: https://intevation.de/roundup/kolab/

After that, I would appreciate it if you gave me some feedback over here or closed the report yourself when it's fixed.
Comment 4 Julian Mehnle 2006-01-10 18:31:17 UTC
If you read my comments carefully, you'll notice that no Kolab server is involved.  I use a plain, usual IMAP server and the "IMAP Server via KMail" resource from the KDEPIM package.
Comment 5 Michael Brade 2006-01-10 23:32:58 UTC
Fair enough, that doesn't change the fact that it's Kolab code though (look at your original report) and that I still don't know their code at all. 

However, I didn't know it is possible to use the groupware stuff without an actual Kolab server, nice! So I tried it and I can reproduce the bug. Maybe I'll be able to debug and fix it, I'll give it a try. But no promises.
Comment 6 Michael Brade 2006-01-16 22:35:08 UTC
Well, I'm sorry but the bug seems to be somewhere deep in KMail's code that was written for the Kroupware project. But it seems they never completely finished the code for the note handling.

I have written to kmail-devel@kde.org (some Kroupware and Kolab authors are on it) with a report which method breaks but they didn't respond.

I can't fix the bug myself without spending a lot more time on it, so this will have to wait probably for another 6 months or more. 
Comment 7 Julian Mehnle 2006-01-17 00:58:32 UTC
Thanks for looking into it!  I'll be patient until either the Kroupware people or you manage to fix it.  Too bad I don't have the slightest clue of KDE programming myself.
Comment 8 Enrique Iglesias 2007-10-03 12:04:33 UTC
I have the same problem at all. Somewhere between updates notes began to be saved missing both name and content (example added as attachment).

I'm using kontact 1.2.4, knotes 0.5, kmail 1.9.6, kde 3.5.7 on opensuse 10.2 using an DIMAP resource into a standard IMAP mailbox.

Greetings.
Comment 9 Enrique Iglesias 2007-10-03 12:06:17 UTC
Created attachment 21743 [details]
Broke note mesage saved from DIMAP mailbox
Comment 10 Guillermo Antonio Amaral Bastidas 2007-10-14 21:53:03 UTC
The problem seems to be on the KMail end as far as I can tell.

I will look into the problem, but it might have to wait.
Comment 11 Guillermo Antonio Amaral Bastidas 2007-10-25 00:42:11 UTC
*** Bug 115958 has been marked as a duplicate of this bug. ***
Comment 12 Christian Mollekopf 2012-06-08 18:41:26 UTC
I don't think this has anything to do with kolab, at least not anymore. Any news on this?
If not, I'm going to close this report as I have no intention of fixing it and an akonadi port would automatically fix the problem (an would be the proper way for syncing).
Comment 13 Myriam Schweingruber 2013-02-14 11:20:46 UTC
Closing based on comment #12