This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Selection of fields when exporting data to vcs from KAddressBook

Tags: None
(comma "," separated)
jroman
Registered Member
Posts
7
Karma
0
OS
Hi,

I would like to see exported the "categories" field of my contacts resource in KAddressBook.

I use:
File -> Export -> vCard 2.1:

- All contacts

* Private fields
* Bussiness fields
* Other fields

Any help?

Cheers.
User avatar
anda_skoa
KDE Developer
Posts
783
Karma
4
OS
Do you really need vCard 2.1?

vCard 3.0 has been standard for years, most applications should be able to handle it.

Cheers,
_


anda_skoa, proud to be a member of KDE forums since 2008-Oct.
jroman
Registered Member
Posts
7
Karma
0
OS
anda_skoa wrote:Do you really need vCard 2.1?

Well, sorry, but :'( my mobile phone expects v 2.1 ...
User avatar
anda_skoa
KDE Developer
Posts
783
Karma
4
OS
I see.

Which version of KDE are you using?

Cheers,
_


anda_skoa, proud to be a member of KDE forums since 2008-Oct.
jroman
Registered Member
Posts
7
Karma
0
OS
anda_skoa wrote:Which version of KDE are you using?_

3.5.10

on Linux 2.6.24-23-generic #1 SMP Mon Jan 26 01:04:16 UTC 2009 x86_64 GNU/Linux

Thanks for your interest.
jroman
Registered Member
Posts
7
Karma
0
OS
Hi,

Is there any place where I could select the fields (X- fields) to export to vcard? I imagine the "categories" of the contacts could be exported as a X-CATEGORIES field...

Cheers
User avatar
anda_skoa
KDE Developer
Posts
783
Karma
4
OS
I will have to check this later on my 3.5.10 system, but I am not sure how configurable the vcard 2.1 export is.

I think the most configurable export is the one for CSV.

Cheers,
_


anda_skoa, proud to be a member of KDE forums since 2008-Oct.
jroman
Registered Member
Posts
7
Karma
0
OS
Hi,

Well, the thing is that I need a vCard 2.1 export.

Would you know of an easy way to pass from csv to vCard to work around the "poor" configurability of the vCard export?
User avatar
anda_skoa
KDE Developer
Posts
783
Karma
4
OS
I just checked the code and Categories are an explicit v3.0 feature at export. My guess is that this field has not been part of the 2.1 specification.

How does your device save categories to its files?

Cheers,
_


anda_skoa, proud to be a member of KDE forums since 2008-Oct.
jroman
Registered Member
Posts
7
Karma
0
OS
anda_skoa wrote:How does your device save categories to its files?


As a special X-GROUP line:

Code: Select all
X-GROUP;CHARSET=UTF-8:Friends


being "Friends", the name of the group.

Do you think it is possible to export to v3 and then parse the file to conform to v2.1?

Cheers
User avatar
anda_skoa
KDE Developer
Posts
783
Karma
4
OS
That could be possible.
Basically will need charset=utf-8 for all fields with strings since this is V3 default.

Cheers,
_


anda_skoa, proud to be a member of KDE forums since 2008-Oct.
jroman
Registered Member
Posts
7
Karma
0
OS
And that's all?

I'll try then:
- Export to v3 (selecting 'categories')
- Ensure UTF-8 in every text field
- Treat the file as if it was v2.1

Thanks
User avatar
anda_skoa
KDE Developer
Posts
783
Karma
4
OS
jroman wrote:And that's all?


My guess is that there is more. This is just one specific difference that I remember.

Cheers,
_


anda_skoa, proud to be a member of KDE forums since 2008-Oct.


Bookmarks



Who is online

Registered users: Bing [Bot], Google [Bot], Sogou [Bot]