UBports Robot Logo UBports Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    Contacts sorting

    Scheduled Pinned Locked Moved Support
    23 Posts 7 Posters 3.2k Views 2 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
      Reply
      • Reply as topic
      Log in to reply
      This topic has been deleted. Only users with topic management privileges can see it.
      • C Offline
        chris_bavaria @lool_lauris
        last edited by chris_bavaria

        @lool_lauris
        With Thunderbird I have now found a solution.
        When creating a new contact, TB always generates the display name in the form "First Name Last Name".
        This can be corrected in Settings->Advanced->Configuration.

        mail.addr_book.displayName.lastnamefirst -> true
        The last name is set first in the display name.
        This only applies to newly created contacts.

        mail.addr_book.lastnamefirst -> 1
        The address book is sorted by last name, first name (even if you already have contacts).

        Since I use the "Cardbook" addon in Thunderbird, I have
        Right click on the Cardbook Address Book -> Edit Address Book -> Miscellaneous -> Generate Friendly Names

        The default setting there are:
        ({{1}} |)({{2}} |)({{3}} |)({{4}} |)({{5}} |)({{6}} |)({ {7}}|)

        Here is the appropriate setting:
        ({{4}}, |)({{1}} |)({{2}} |)({{3}} |)({{5}} |)({{6}} |)( {{7}}|)

        Click on the "Apply to" button and select the desired address book.
        After synchronization, all my addresses in UT are now sorted by last name and the display name is "Last Name, First Name"
        For me this question is solved ๐Ÿ‘ :beaming_face_with_smiling_eyes:

        Redmi Note 9 pro (UT 20.04 OTA-5) with Legion5 (Ubuntu 23.10)

        lduboeufL 1 Reply Last reply Reply Quote 0
        • lduboeufL Offline
          lduboeuf @chris_bavaria
          last edited by

          @chris_bavaria
          :), how do you sync contacts with your TB ?.
          But when you will edit a contact. the displayName will be changed according to FirstName + LastName

          C 1 Reply Last reply Reply Quote 0
          • C Offline
            chris_bavaria @lduboeuf
            last edited by

            @lduboeuf
            I'm using syncevolution and I created the configuration in the terminal with "--template webdav". My address book is a vCard 3.0.
            Only the "Display name" field is used in the UT address book. As far as I found out the fields "First Name" "Last Name" are not used/displayed.
            After the change in Thunderbird, I synchronized my contacts with the Radicale server (starts local in background with TB) and the subsequent syncevolution sync on UT refreshed all contacts.
            If desired, I can make my configuration for the address book available as a new Topic.

            Redmi Note 9 pro (UT 20.04 OTA-5) with Legion5 (Ubuntu 23.10)

            lduboeufL 1 Reply Last reply Reply Quote 0
            • lduboeufL Offline
              lduboeuf @chris_bavaria
              last edited by

              @chris_bavaria
              so you export your contacts to a vcard file from TB ( which is on your PC) to UT and then sync with Evolution ?

              I ask, because i'm working on the new contact backend, and don't know a lot about that use case.
              Evolution will be disabled apparently, so i wonder how that kind of task will be done later

              C 1 Reply Last reply Reply Quote 0
              • C Offline
                chris_bavaria @lduboeuf
                last edited by

                @lduboeuf
                I have a small, slim service running on my PC Linux, which I start as soon as I call Thunderbird:
                https://radicale.org/v3.html
                Please DO NOT disable Syncevolution!
                Syncevolution also synchronizes all calendars.
                Here's how I set up my sync:

                syncevolution --create-database backend=evolution-contacts database=addressbook
                syncevolution --configure --template webdav username=chris password=123456789 syncURL=http://192.168.188.21:5232 keyring=no target-config@radicale
                syncevolution --configure backend=evolution-contacts database=contacts @default addressbook
                #syncevolution --configure backend=contacts database=contacts @default addressbook
                # hier die Datenbank ID aus radicale dem Adressbuch zuordnen
                syncevolution --configure database=http://192.168.188.21:5232/chris/cb7491ce-2181-a6cb-b3e4-ab25d8241d35/ backend=carddav target-config@radicale addressbook
                syncevolution --configure --template SyncEvolution_Client Sync=None syncURL=local://@radicale username= password= radicale addressbook
                syncevolution --configure sync=two-way backend=evolution-contacts database=addressbook radicale addressbook
                syncevolution --sync slow radicale addressbook
                # [ERROR] remote device ID 'syncevolution-01550ce8-4e8b-4ecb-b381-6538a552feb3' in config does not match the one from the peer 'syncevolution-33965ac5-3011-40cc-931e-7327cdfae0ea' - incorrect configuration?!
                # Die ID in der ~/.config/syncevolution/radicale/config.ini laut Fehlermeldung austauschen ;-)
                # anschlieรŸend sollte mit <$syncevolution --sync slow radicale addressbook> die Synchronisatino in beide Richtungen erfolgen
                

                Redmi Note 9 pro (UT 20.04 OTA-5) with Legion5 (Ubuntu 23.10)

                lduboeufL 1 Reply Last reply Reply Quote 0
                • B Offline
                  Bocephus @lduboeuf
                  last edited by

                  @lduboeuf No, it will not be confusing; it will be a lot better than the current condition in any case.

                  Whoever thought sorting by first name was a good idea anyway? That is just not done, unless you are 5 years old and your only contacts are "Dad", "Gjammy" and "Mom".

                  lduboeufL 1 Reply Last reply Reply Quote 0
                  • lduboeufL Offline
                    lduboeuf @chris_bavaria
                    last edited by

                    @chris_bavaria said in Contacts sorting:

                    Please DO NOT disable Syncevolution!

                    cc @mardy ๐Ÿ™‚

                    1 Reply Last reply Reply Quote 0
                    • lduboeufL Offline
                      lduboeuf @Bocephus
                      last edited by

                      @bocephus said in Contacts sorting:

                      Whoever thought sorting by first name was a good idea anyway? That is just not done, unless you are 5 years old and your only contacts are "Dad", "Gjammy" and "Mom".

                      Not an issue for me, but probably not a heavy contact user. User should have the choice yes, that feature is common in address book managements system but the dev impact seems quite heavy.

                      lduboeufL 1 Reply Last reply Reply Quote 0
                      • lduboeufL Offline
                        lduboeuf @lduboeuf
                        last edited by

                        @lduboeuf BTW if any developers around, address-book-app is very easy to test at least with clickable ide qtcreator, and we can work with our real data. Show in Phone mode and Desktop.

                        arubislanderA 1 Reply Last reply Reply Quote 0
                        • arubislanderA Offline
                          arubislander @lduboeuf
                          last edited by

                          @lduboeuf said in Contacts sorting:

                          @lduboeuf BTW if any developers around, address-book-app is very easy to test at least with clickable ide qtcreator, and we can work with our real data. Show in Phone mode and Desktop.

                          @lsitongia โ˜๐Ÿพ

                          ๐Ÿ‡ฆ๐Ÿ‡ผ ๐Ÿ‡ณ๐Ÿ‡ฑ ๐Ÿ‡บ๐Ÿ‡ธ ๐Ÿ‡ช๐Ÿ‡ธ
                          Happily running Ubuntu Touch
                          Google Pixel 3a (20.04 DEV)
                          JingPad (24.04 preview)
                          Meizu Pro 5 (16.04 DEV)

                          1 Reply Last reply Reply Quote 1
                          • First post
                            Last post