A note to the nice workaround that Jamie provided: in my case, PREF was
separated from the previous attribute by ';'. Thus, check your exported
vcf and use the correct sed command. A trivial change; nevertheless I
provide for those readers with no sed experience the version of command
2 I had to use:

2. $ sed 's/;PREF:/:/g' $HOME/old.vcf > $HOME/new.vcf

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to evolution in Ubuntu.
https://bugs.launchpad.net/bugs/581843

Title:
  after upgrade from hardy, evolution does not display addresses

Status in “evolution” package in Ubuntu:
  Triaged

Bug description:
  Binary package hint: evolution

  On several machines upgrading from Hardy to Lucid I noticed that while
  the contacts showed up in the address book, some contact's addresses
  were missing.

  I then found bug #289686 and did:
  $ sudo apt-get install db4.8-util
  $ evolution --force-shutdown
  $ cd ~/.evolution/addressbook/local/system/
  $ file ./addressbook.db
  ./addressbook.db: Berkeley DB (Hash, version 8, native byte-order) # should 
be '9'
  $ db4.8_dump addressbook.db > blah.txt
  $ mv addressbook.db addressbook.db.backup
  $ cat blah.txt | db4.8_load addressbook.db

  This converted it to 9, but the problem still remained, so I exported the 
whole addressbook as a vcard and compared the contents for contacts where the 
address did display, and ones where it didn't and found this in the ones that 
didn't display:
  BEGIN:VCARD
  VERSION:3.0
  ...
  ADR;TYPE=WORK,PREF:;Street;City;State;;
  LABEL;TYPE=WORK,PREF:Street\nCity\, State
  ...

  If I removed ',PREF' from these and imported them, they displayed in
  evolution.

  To fix a whole addressbook, can do:
  1. 'File/Save Address Book as VCard' and save it as $HOME/old.vcf
  2. $ sed 's/,PREF:/:/g' $HOME/old.vcf > $HOME/new.vcf
  3. remove all contacts from contact list
  4. File/Import and import new.vcf into the personal address book

  ProblemType: Bug
  DistroRelease: Ubuntu 10.04
  Package: evolution 2.28.3-0ubuntu9
  ProcVersionSignature: Ubuntu 2.6.32-22.33-generic 2.6.32.11+drm33.2
  Uname: Linux 2.6.32-22-generic x86_64
  Architecture: amd64
  Date: Mon May 17 12:03:30 2010
  EcryptfsInUse: Yes
  ProcEnviron:
   PATH=(custom, user)
   LANG=en_US.utf8
   SHELL=/bin/bash
  SourcePackage: evolution

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/evolution/+bug/581843/+subscriptions

-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to