Announcement

Collapse
No announcement yet.

Kontact - Default Address Book

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Kontact - Default Address Book

    Hi,

    I've been using Kontact happily for some time using an akonadi address book, and previously that was the only entry in the "Address Books" pane.

    I notice today that the "Default Address Book" has re-appear in the "Address Books" pane - am I mistaken or did you used to be able to right click on an address book in this pane to get a menu which had an entry for "Set as Default"?

    If I delete the "Default Address Book" it just comes back when I shutdown kontact and fire it up again!!

    Has the option to "Set as Default" disappeared, or am I doing something wrong.

    #2
    Re: Kontact - Default Address Book

    Ok,

    Editing the 'stdrc' config file in ~/.kde/share/config/kresources/contact fixed the problem, but it leaves me with the question - Why can't I do this from within Kontact

    Here's the old contents :-

    Code:
    [$Version]
    update_info=kolab-resource.upd:kolab-contact-resource-rename
    
    [General]
    PassiveResourceKeys=
    ResourceKeys=AkRFhOkrrN,yllJvhgVvC
    Standard=yllJvhgVvC
    
    [Resource_AkRFhOkrrN]
    ResourceIdentifier=AkRFhOkrrN
    ResourceIsActive=true
    ResourceIsReadOnly=false
    ResourceName=akonadi address book
    ResourceType=akonadi
    
    [Resource_AkRFhOkrrN][StoreConfig][text/directory]
    CollectionUrl=akonadi:?collection=6
    
    [Resource_AkRFhOkrrN][akonadi:?collection=6]
    Active=true
    
    [Resource_yllJvhgVvC]
    FileFormat=vcard
    ResourceIdentifier=yllJvhgVvC
    ResourceIsActive=true
    ResourceIsReadOnly=false
    ResourceName=Default Address Book
    ResourceType=file
    Changed it to this and all is well
    Code:
    [$Version]
    update_info=kolab-resource.upd:kolab-contact-resource-rename
    
    [General]
    PassiveResourceKeys=
    ResourceKeys=AkRFhOkrrN
    Standard=AkRFhOkrrN
    
    [Resource_AkRFhOkrrN]
    ResourceIdentifier=AkRFhOkrrN
    ResourceIsActive=true
    ResourceIsReadOnly=false
    ResourceName=akonadi address book
    ResourceType=akonadi
    
    [Resource_AkRFhOkrrN][StoreConfig][text/directory]
    CollectionUrl=akonadi:?collection=6
    
    [Resource_AkRFhOkrrN][akonadi:?collection=6]
    Active=true

    Comment


      #3
      Re: Kontact - Default Address Book

      My stdrc:

      Code:
      [$Version]
      update_info=kolab-resource.upd:kolab-contact-resource-rename
      
      [General]
      PassiveResourceKeys=
      ResourceKeys=xG1qwhQ0Oh
      Standard=xG1qwhQ0Oh
      
      [Resource_xG1qwhQ0Oh]
      FileFormat=vcard
      ResourceIdentifier=xG1qwhQ0Oh
      ResourceIsActive=true
      ResourceIsReadOnly=false
      ResourceName=resource
      ResourceType=file
      I added my calendar (std.ics) and addressbook (std.vcf) to the Akonadi resources in System Settings, but I'm actually not sure what this does...

      Comment


        #4
        Re: Kontact - Default Address Book

        This is sort of interesting... I did not have to edit the stdrc-file... I just unchecked the other resources (did not delete the Default), and Kontact remembers the setting and on restart only the Akonadi resource is checked (and displayed; no double entries).

        Although I have not rebooted my computer yet (I do not normally do that...).

        But your instructions on how to add the resources properly were useful nevertheless; I was in fact not using the Akonadi resources... but now I'm pretty sure I do.

        Chopstick

        Just for the record, here is my stdrc:
        Code:
        [$Version]
        update_info=kolab-resource.upd:kolab-contact-resource-rename
        
        [General]
        PassiveResourceKeys=xG1qwhQ0Oh,qWOasG8fhD
        ResourceKeys=mu2y7BCeKa
        Standard=qWOasG8fhD
        
        [Resource_VcvKBEDqlp]
        ResourceIdentifier=VcvKBEDqlp
        ResourceIsActive=false
        ResourceIsReadOnly=false
        ResourceName=Kolab Server
        ResourceType=imap
        
        [Resource_mu2y7BCeKa]
        ResourceIdentifier=mu2y7BCeKa
        ResourceIsActive=true
        ResourceIsReadOnly=false
        ResourceName=akonadi address book
        ResourceType=akonadi
        
        [Resource_mu2y7BCeKa][StoreConfig][application/x-vnd.kde.contactgroup]
        CollectionUrl=akonadi:?collection=2
        
        [Resource_mu2y7BCeKa][StoreConfig][text/directory]
        CollectionUrl=akonadi:?collection=2
        
        [Resource_qWOasG8fhD]
        FileFormat=vcard
        ResourceIdentifier=qWOasG8fhD
        ResourceIsActive=false
        ResourceIsReadOnly=false
        ResourceName=Default Address Book
        ResourceType=file
        
        [Resource_vY8XfmsPmK]
        ResourceIdentifier=vY8XfmsPmK
        ResourceIsActive=false
        ResourceIsReadOnly=false
        ResourceName=Kolab Server
        ResourceType=imap
        
        [Resource_xG1qwhQ0Oh]
        FileFormat=vcard
        ResourceIdentifier=xG1qwhQ0Oh
        ResourceIsActive=false
        ResourceIsReadOnly=false
        ResourceName=resource
        ResourceType=file

        Comment


          #5
          Re: Kontact - Default Address Book

          Hi Chopstick,

          I've been round this loop several times, if you look at the stdrc file you posted the "Standard" resource under the [General] heading refers to Sandard=qWOasG8fhD

          Looking down the file list, this entry is in fact the "Default Address Book"; in Kontact -> Contact-> Address Books pane, have you got an entry listed as the "Default Address Book" but unchecked? I must admit it does work like that, but you should be able to remove this entry completely, instead of setting it as passive .

          By editing the stdrc file I don't have an entry in the Address Books pane for "Default Address Book" at all!!!

          I seem to remember being able to Mouse Right Click on the entries in the address pane and being presented with a menu which had an entry "Set as Default" or something similar. Currently I get no menu at all - hence the manual editing of stdrc file! (In the Distribution Lists pane above Address Books, right click produces a menu for "New Distribution List...").

          Once you had chosen an address book other than the "Default Address Book" as default, you could safely delete the "Default address Book" from the graphical interface, but you don't seem able to do this graphically at present. You should be able to choose a different address as the default.

          If you try deleting the Default address Book from your list by highlighting and clicking on the red X, it will disappear- BUT next time you shut down and restart Kontact it's back again!!!

          With my stdrc file the Default Address Book entry is not there at all since the akonadi address book is set as the default

          Correct me if I'm wrong, but in Your case I believe you should have Standard=mu2y7BCeKa which refers to the akonadi address book.

          You can then delete the [Resource_qWOasG8fhD] section entirely along with any reference to it, as follows:-

          [$Version]
          update_info=kolab-resource.upd:kolab-contact-resource-rename

          [General]
          PassiveResourceKeys=xG1qwhQ0Oh
          ResourceKeys=mu2y7BCeKa
          Standard=mu2y7BCeKa

          [Resource_VcvKBEDqlp]
          ResourceIdentifier=VcvKBEDqlp
          ResourceIsActive=false
          ResourceIsReadOnly=false
          ResourceName=Kolab Server
          ResourceType=imap

          [Resource_mu2y7BCeKa]
          ResourceIdentifier=mu2y7BCeKa
          ResourceIsActive=true
          ResourceIsReadOnly=false
          ResourceName=akonadi address book
          ResourceType=akonadi

          [Resource_mu2y7BCeKa][StoreConfig][application/x-vnd.kde.contactgroup]
          CollectionUrl=akonadi:?collection=2

          [Resource_mu2y7BCeKa][StoreConfig][text/directory]
          CollectionUrl=akonadi:?collection=2

          [Resource_vY8XfmsPmK]
          ResourceIdentifier=vY8XfmsPmK
          ResourceIsActive=false
          ResourceIsReadOnly=false
          ResourceName=Kolab Server
          ResourceType=imap

          [Resource_xG1qwhQ0Oh]
          FileFormat=vcard
          ResourceIdentifier=xG1qwhQ0Oh
          ResourceIsActive=false
          ResourceIsReadOnly=false
          ResourceName=resource
          ResourceType=file

          Comment


            #6
            Re: Kontact - Default Address Book

            I deleted my old address book ("resource") and restarted Kontact, and the result was exactly what you described, ds_shellback. For some odd reason I actually did not have a "Default Addressbook" before I deleted "resource" (the old one).

            I edited the stdrc-file and now it works.

            Maybe the "resource" was a remnant from a failed experiment with a Kolab-server...
            do you, by any chance, have experience with that?
            I gave up on it and now I'm just synchronizing the std.vcf and stc.ics files between my laptop and PC using Unison (based on rsync).

            Chopstick

            current stdrc:
            Code:
            [$Version]
            update_info=kolab-resource.upd:kolab-contact-resource-rename
            
            [General]
            PassiveResourceKeys=
            ResourceKeys=eFdIRXwVP4
            Standard=eFdIRXwVP4
            
            [Resource_eFdIRXwVP4]
            ResourceIdentifier=eFdIRXwVP4
            ResourceIsActive=true
            ResourceIsReadOnly=false
            ResourceName=akonadi address book
            ResourceType=akonadi
            
            [Resource_eFdIRXwVP4][StoreConfig][application/x-vnd.kde.contactgroup]
            CollectionUrl=akonadi:?collection=5
            
            [Resource_eFdIRXwVP4][StoreConfig][text/directory]
            CollectionUrl=akonadi:?collection=5
            
            [Resource_eFdIRXwVP4][akonadi:?collection=2]
            Active=true
            
            [Resource_eFdIRXwVP4][akonadi:?collection=5]
            Active=true

            Comment


              #7
              Re: Kontact - Default Address Book

              Glad you got it working Chopstick; I've no experience of setting up a kolab server, but I'm always learning.

              ds_shellback

              Comment

              Working...
              X