hide differences due to different PHOTO parameters, fixed EMAIL;INTERNET;OTHER
git-svn-id: https://zeitsenke.de/svn/SyncEvolution/trunk@83 15ad00c4-1369-45f4-8270-35d70d36bdcd
This commit is contained in:
parent
d33f8075ea
commit
9e8a58fb66
|
@ -25,7 +25,8 @@ sub Normalize {
|
|||
s/;CHARSET="UTF-8"//g;
|
||||
|
||||
# ignore extra email type
|
||||
s/^EMAIL;TYPE=INTERNET/EMAIL/mg;
|
||||
s/^EMAIL;.*TYPE=INTERNET/EMAIL$1/mg;
|
||||
s/^EMAIL;TYPE=OTHER/EMAIL$1/mg;
|
||||
# ignore extra ADR type
|
||||
s/^ADR;TYPE=OTHER/ADR/mg;
|
||||
# ignore TYPE=PREF in address, does not matter in Evolution
|
||||
|
@ -36,6 +37,10 @@ sub Normalize {
|
|||
s/^X-(AIM|GROUPWISE|ICQ|YAHOO);TYPE=HOME/X-$1/gm;
|
||||
# TYPE=VOICE is the default in Evolution and may or may not appear in the vcard
|
||||
s/^TEL([^:]*);TYPE=VOICE([^:]*):/TEL$1$2:/mg;
|
||||
# don't care about the TYPE property of PHOTOs
|
||||
s/^PHOTO;(.*)TYPE=[A-Z]*/PHOTO;$1/mg;
|
||||
# encoding is not case sensitive
|
||||
s/^PHOTO;(.*)ENCODING=b/PHOTO;$1ENCODING=B/mg;
|
||||
|
||||
# remove extra timezone specification, it is not supported
|
||||
# by SyncEvolution
|
||||
|
|
Loading…
Reference in New Issue