Bug 73864 - Import KDE2 address book doesn't work
Summary: Import KDE2 address book doesn't work
Status: RESOLVED UNMAINTAINED
Alias: None
Product: kab3
Classification: Miscellaneous
Component: general (show other bugs)
Version: 3.1
Platform: openSUSE Linux
: NOR normal
Target Milestone: ---
Assignee: Tobias Koenig
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-01-31 04:56 UTC by abrahams
Modified: 2009-08-05 16:04 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description abrahams 2004-01-31 04:56:21 UTC
Version:           3.1 (using KDE KDE 3.1.4)
Installed from:    SuSE RPMs
OS:          Linux

Clicking on the File/Import/Import KDE2 Address Book offers an option to override existing entries or not, but then does nothing.  It's possible that my KDE2 address book is not in the expected place, but there's no indication of what the expected place is.
Comment 1 Tobias Koenig 2004-01-31 18:06:39 UTC
Subject: Re:  New: Import KDE2 address book doesn't work

On Sat, Jan 31, 2004 at 03:56:23AM -0000, abrahams@acm.org wrote:
> Version:           3.1 (using KDE KDE 3.1.4)
> Installed from:    SuSE RPMs
> OS:          Linux
Hi,

> Clicking on the File/Import/Import KDE2 Address Book offers an option
> to override existing entries or not, but then does nothing.
> It's possible that my KDE2 address book is not in the expected place,
> but there's no indication of what the expected place is.
There should be a file under $HOME/.kde/share/apps/kab/addressbook.kab,
does it exists?

Could you start kaddressbook with the command line argument --nofork in
a konsole window and append the output to the bug report please?

Ciao,
Tobias
Comment 2 abrahams 2004-01-31 19:28:53 UTC
Subject: Re:  Import KDE2 address book doesn't work

Tobias,

I've found the problem; the addressbook files were located under ~/.kde2, not 
~/.kde.  So the problem is really one of documentation; kaddressbook should 
indicate explicitly what it's looking for.   Alternatively it could look in 
~/.kde2 if the search in ~/.kde is fruitless.

An explanatory note: I installed kde3 as part of a complete reinstallation of 
SuSE Linux.  I had saved the complete contents of my old home directory in a 
backup partition, so I moved the .kde2 file from there to my current home 
directory, figuring that it wouldn't interfere with .kde.  And so far it 
hasn't.

By the way, there's something about your message that prevented kmail from 
quoting it in this reply.

Paul

Comment 3 Tobias Koenig 2004-02-06 20:13:27 UTC
Subject: kdelibs/kabc

CVS commit by tokoe: 

Open a message box wich informs the user when the address book file is
not available. That fixes also the wish from #73864.

CCMAIL:73864-done@bugs.kde.org


  M +8 -5      kab2kabc.cpp   1.20


--- kdelibs/kabc/kab2kabc.cpp  #1.19:1.20
@@ -22,12 +22,13 @@
 #include <qtextstream.h>
 
+#include <kabapi.h>
 #include <kaboutdata.h>
 #include <kapplication.h>
-#include <kdebug.h>
-#include <klocale.h>
 #include <kcmdlineargs.h>
-#include <kabapi.h>
-#include <kglobal.h>
 #include <kconfig.h>
+#include <kdebug.h>
+#include <kglobal.h>
+#include <klocale.h>
+#include <kmessagebox.h>
 #include <kstandarddirs.h>
 
@@ -291,5 +292,7 @@ void importKab( KABC::AddressBook *ab, b
   fileName += "addressbook.kab";
   if (!QFile::exists( fileName )) {
-    kdDebug() << "No KDE 2 addressbook found." << endl;
+    KMessageBox::error( 0, "<qt>" + i18n( "Address book file <b>%1</b> not found! Make sure the old address book is located there and you have read permission for this file." )
+                        .arg( fileName ) + "</qt>" );
+    kdDebug(5700) << "No KDE 2 addressbook found." << endl;
     return;
   }


Comment 4 Tobias Koenig 2009-08-05 16:04:11 UTC
The development of the old KAddressBook will be discontinued for KDE 4.4.
Since the new application has the same name, but a completly new code base we close all bug reports against the old version and ask the submitters to resend there reports against the new product.