<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.kde.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugs.kde.org/"
          
          maintainer="sysadmin@kde.org"
>

    <bug>
          <bug_id>116006</bug_id>
          
          <creation_ts>2005-11-09 17:25:28 +0000</creation_ts>
          <short_desc>Exporting contacts to vcard generates _.vcf for EVERY contact without a real name</short_desc>
          <delta_ts>2009-08-05 16:27:53 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>10</classification_id>
          <classification>Unmaintained</classification>
          <product>kab3</product>
          <component>general</component>
          <version>unspecified</version>
          <rep_platform>unspecified</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>UNMAINTAINED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>NOR</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>0</everconfirmed>
          <reporter name="Rudolf Kollien">Rudolf.Kollien</reporter>
          <assigned_to name="Tobias Koenig">tokoe</assigned_to>
          
          
          <cf_commitlink></cf_commitlink>
          <cf_versionfixedin></cf_versionfixedin>
          <cf_sentryurl></cf_sentryurl>
          <votes>0</votes>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>388506</commentid>
    <comment_count>0</comment_count>
    <who name="Rudolf Kollien">Rudolf.Kollien</who>
    <bug_when>2005-11-09 17:25:29 +0000</bug_when>
    <thetext>Version:            (using KDE KDE 3.4.3)
OS:                Linux

When exporting contacts to vcard, then for each contact an individual file is created. Every file is named as christianname_surname.vcf

If there is no entry in this both contact fields (like this is for contacts of organizations, where no individual is named), then a file with the name _.vcf ist created. So if there a more than one &quot;organization contact&quot;, than the lastone &quot;wins&quot;. 

Would be better to use the organization name if no christen-/surname are defined (both empty).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>397342</commentid>
    <comment_count>1</comment_count>
    <who name="Tobias Koenig">tokoe</who>
    <bug_when>2005-12-10 18:45:09 +0000</bug_when>
    <thetext>SVN commit 487459 by tokoe:

Bugfix of #116006

BUGS:116006


 M  +12 -1     vcard_xxport.cpp  


--- branches/KDE/3.5/kdepim/kaddressbook/xxport/vcard_xxport.cpp #487458:487459
@@ -132,9 +132,20 @@
           return true;
 
         KABC::AddresseeList::ConstIterator it;
+        uint counter = 0;
         for ( it = list.begin(); it != list.end(); ++it ) {
-          url = baseUrl.url() + &quot;/&quot; + (*it).givenName() + &quot;_&quot; + (*it).familyName() + &quot;.vcf&quot;;
+          QString testUrl;
+          if ( (*it).givenName().isEmpty() &amp;&amp; (*it).familyName().isEmpty() )
+            testUrl = baseUrl.url() + &quot;/&quot; + (*it).organization();
+          else
+            testUrl = baseUrl.url() + &quot;/&quot; + (*it).givenName() + &quot;_&quot; + (*it).familyName();
 
+          if ( KIO::NetAccess::exists( testUrl + (counter == 0 ? &quot;&quot; : QString::number( counter )) + &quot;.vcf&quot;, false, parentWidget() ) ) {
+            counter++;
+            url = testUrl + QString::number( counter ) + &quot;.vcf&quot;;
+          } else
+            url = testUrl + &quot;.vcf&quot;;
+
           bool tmpOk;
           KABC::AddresseeList tmpList;
           tmpList.append( *it );
</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>806035</commentid>
    <comment_count>2</comment_count>
    <who name="Tobias Koenig">tokoe</who>
    <bug_when>2009-08-05 16:27:53 +0000</bug_when>
    <thetext>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.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>