py-vobject / vobject

A full-featured Python package for parsing and creating iCalendar and vCard files
http://py-vobject.github.io/
29 stars 7 forks source link

Does not honour PREF parameters #66

Open da4089 opened 1 month ago

da4089 commented 1 month ago

Import from: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=695941

vobject.adr seems to be the first entry of vobject.adr_list, unconditionally, even if the second entry has a higher-ranked (= lower) preference parameter, e.g.

ADR;PREF=2:foo ADR;PREF=1:bar

In this case, vobject.adr should really correspond to the "bar" entry.

Along similar lines, it would be good if there were a filter function for adr_list and other type entries that can be duplicated and have PREF parameters.