vcard2person/patches/android_group-vcard2person....

15 lines
346 B
Diff
Raw Normal View History

2020-05-03 16:11:00 -05:00
191a192,201
> ## CUSTOM
> function vcard_group {
> local vcard="$1"
> grep "X-ANDROID-CUSTOM:vnd.android.cursor.item/relation;" "$vcard" \
> | sed 's%X-ANDROID-CUSTOM:vnd.android.cursor.item/relation;%%' \
> | sed 's%;.*%%' \
> | clean
> }
>
>
203a214,215
> ## CUSTOM
> addattr -t string META:group "$(vcard_group "$vcard")" "$person"