LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop
User Name
Password
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.

Notices

Reply
 
Search this Thread
Old 10-04-2006, 03:56 AM   #1
combatwombat
Member
 
Registered: Apr 2003
Location: Hastings, Hawkes Bay, NZ
Distribution: Ubuntu Gutsy Gibbon
Posts: 53

Rep: Reputation: 15
Talking HOWTO: New format for Distribution Lists in KaddressBook


Just installed PCLINUXOS 093a "Big Daddy" onto my wife's machine, which used to run Mepis/Ubuntu. PCLOS is very fast, and prettier too. But I ran into a hitch when converting data from old profile to new. Both OSes run KDE3.53, but they handle Kaddressbook differently. Under PCLOS the Distribution Lists are integrated into the standard VCF file under /home/user/.kde/share/apps/kabc. There used to be a file called distlists. Follows instructions for migrating data manually, until somebody cleverer than me makes a utility to do this:
1. Open up old distlists file in kate. Print it too, if it is large. Leave kate open with this file.
2. Go into Kaddressbook (hereafter KABC)(or Contacts in Kontact). Settings> Show Extension Bar > Distribution List Editor.
3. For each old list you had create a new list with the New List.. button. DON'T populate it. Keep creating new lists.
4. Make sure Kontact,etc. is closed. Right-click-quit by the clock is usual.
5. Open up another kate window, being the current std.vcf file in /home/user/.kde/share/apps/kabc.
6. Now comes the tricky part. In the std.vcf file use CTRL-F to bring up find, then find the point where the first of your distribution lists are. It looks like this: (at least it did on our pc)

BEGIN:VCARD
FN:relatives
N:relatives;;;;
UID:n3QJHLSPMY
VERSION:3.0
X-KADDRESSBOOK-DistributionList:;
END:VCARD

You can see here that the list was called relatives. You can choose your friends...

7. Now go into the other kate window with distlists open. You should have something like this:
[Distribution Lists]
Relatives=wm0rh3b40B,,FxWNYeS9p7,,R9TWpcOMdf,,oNgkqClsNf,,9rJRCZrI5U,,8fyYfrHLE9,,9gXY0dgnTy,,vyi0bC zBWY,,Mo13LoISG3,

8. Use click and drag to select everything after the "=", except if a new list starts. Press CTRL C (to copy to Klipboard memory.)

9. Go to kate window with std.vcf open. at this point "X-KADDRESSBOOK-DistributionList:;" you want to follow the semicolon with the text you just copied. Press CTRL V. Don't go away yet, you're not done!

10. In the same kate window, reselect what you just pasted in, using click and drag to select.

11. Now press CTRL R. The replace window comes up. Very important: in Text to Find you type the two commas ,, in replacement text it must be \,; (backslash comma semicolon). MAKE SURE the ONLY cross for selection of options is in the SELECTED TEXT box. Then click Replace.

12.Click Stop ( you don't want to do any more ).

13. Now the unique codes are in place for the distribution list. BUT you must follow the last code for each list like such:
X-KADDRESSBOOK-DistributionList:;wm0rh3b40B\,;FxWNYeS9p7\,;R9TWpcOMdf\,;oNgkqClsNf\,;9rJRCZrI5U\,;8fyYfrHLE9\,;9gXY 0dgnTy\,;vyi0bCzBWY\,;Mo13LoISG3\,

Note the ending backslash then comma.

14. Repeat from step 6 onwards until all lists are done.

15. Close the kate window with std.vcf, and then reopen KABC / Kontact to check it. If all went well you just saved yourself from the dog-kennel for another week!

Of course this all would have been academic had the KDE developer in charge of the KABC project made the distribution lists export with the VCF format. Maybe now that will happen in the future.
 
Old 10-04-2006, 09:32 AM   #2
XavierP
Moderator
 
Registered: Nov 2002
Location: Kent, England
Distribution: Lubuntu
Posts: 19,176
Blog Entries: 4

Rep: Reputation: 430Reputation: 430Reputation: 430Reputation: 430Reputation: 430
Ah man, if only LQ had a Tutorials section where this sort of thing could reside and not get lost in the noise. Wait. LQ i does have such a place.

Could you submit this as a tutorial please - otherwise it will be pushed down the forums by other posts and will be lost. Thanks.
 
  


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
kaddressbook plugins bong.mau Linux - Software 2 09-08-2005 06:02 AM
Howto Format a new RAID 5 HDD kamalsharif Linux - Hardware 14 04-02-2005 07:09 PM
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


All times are GMT -5. The time now is 05:02 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration