LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 12-02-2004, 11:20 PM   #1
mykrob
Member
 
Registered: Jun 2004
Location: Jackson, TN
Distribution: Kubuntu Feisty
Posts: 606

Rep: Reputation: 31
Issue with Kontact and KAddressbook


Hey-
noticed an oddball anomaly with Kontact today. I wanted to add some email address to my contact list, so i right-clicked on the email address and chose "add to addressbook". To my surprise, when i went to the "Contact" section, the contacts were not there. Upon closing and re-opening Kontact, the address mysteriously appear in the contact pane. So, apparently the addresses are getting added, but i cant see them unless i close the app and re-open.

Anyone else experience this and/or have a fix or suggestion?

thanks,
-myk
 
Old 12-03-2004, 02:21 AM   #2
daihard
Member
 
Registered: Jul 2003
Location: Seattle, WA
Distribution: Kubuntu 14.04 LTS
Posts: 915

Rep: Reputation: 34
I see that happening to me, too. I believe it's designed to work that way when you have your address book open in Kontact. For instance, when you first open Kontact and only see "Mail,", then you should be able to save an e-mail address to the address book on the fly. However, if you go to "Contacts" to open the address book, go back to "Mail," and then add a new address, then that one will not be added until you close Kontact. You know what I mean?

What I think is happening is that there are two separate threads handling Mail and Contacts in the same Kontact application. When the Contacts is open, the Contacts thread has the address book file (std.vcf) open with read-write access. That means the Mail thread, which received your request for adding a new address to the address book, cannot change the contents of the address book file.

Instead, the Mail thread creates a copy of the address book (let's say std.vcf_1), saves the new address there, and leaves a flag to let Kontact know that it needs to copy std.vcf_1 to std.vcf when it closes. So the next time you open Kontact, the address book correctly has the new entry.

If you look under ~/.kde/share/apps/kabc/, you'll probably have a few "std.vcf_" files along the main file (std.vcf). Those are the temporary files that have newly added entries.

I just tried my theory. I opened Kontact, went to Contacts to open the address book, went back to Mail and added a new mail address to the address book. Just as I did that, my "std.vcf_4" was updated while "std.vcf" was not. "std.vcf_4" was bigger than "std.vcf," apparently because of the new address. As soon as I closed Kontact, "std.vcf" became the same size as "std.vcf_4."

QED.
 
Old 12-03-2004, 10:02 AM   #3
mykrob
Member
 
Registered: Jun 2004
Location: Jackson, TN
Distribution: Kubuntu Feisty
Posts: 606

Original Poster
Rep: Reputation: 31
hmmm. Interesting. Do you know if there is a way to overcome this "feature"? I have a new convert using this in place of Outlook, and that one issue is somewhat of a bear to her.

Thanks,
-myk
 
Old 12-03-2004, 02:16 PM   #4
daihard
Member
 
Registered: Jul 2003
Location: Seattle, WA
Distribution: Kubuntu 14.04 LTS
Posts: 915

Rep: Reputation: 34
Quote:
Originally posted by mykrob
hmmm. Interesting. Do you know if there is a way to overcome this "feature"? I have a new convert using this in place of Outlook, and that one issue is somewhat of a bear to her.
It's a good question. You could probably do it programmatically; i.e. change the code so the Contacts thread will close every time you switch away from the "Contacts" screen. You need to be fairly familiar with the KDE source code in order to try that, though.

I just found the menu item called "Refresh View" under the "View" menu. From its name I'd expect the address book to be refreshed (and show the newly added entries) once you press it, but that does not happen. It could be a bug with Kontact...
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Can kaddressbook be extended? jhawkinsvalrico Linux - Software 1 03-22-2006 10:01 AM
Kontact Crashing issue: QT Programming Error!? elyk1212 Linux - Software 5 09-28-2005 09:08 PM
KAddressBook (Kontact) sorts contacts in strange ways apachedude Linux - Software 0 08-25-2005 03:53 AM
kaddressbook problem Liakoni Mandriva 0 06-20-2004 05:56 AM
can't save kAddressBook linowes Linux - Software 2 12-08-2002 05:30 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 07:45 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration