synccompare: ignore X-RADICALE-NAME

Added by Radicale CalDAV server to each VEVENT that it stores.
This commit is contained in:
Patrick Ohly 2012-02-20 16:51:37 +01:00
parent 7f555327ad
commit 93b47ace67

View file

@ -88,6 +88,7 @@ my $yahoo = $server =~ /yahoo/;
my $davical = $server =~ /davical/;
my $apple = $server =~ /apple/;
my $oracle = $server =~ /oracle/;
my $radicale = $server =~ /radicale/;
my $evolution = $client =~ /evolution/;
my $addressbook = $client =~ /addressbook/;
@ -412,6 +413,11 @@ sub NormalizeItem {
s/^ATTENDEE([^\n:]*);LANGUAGE=([^\n;:]*)/ATTENDEE$1/mg;
}
if ($radicale) {
# remove extensions added by server
s/^(X-RADICALE-NAME)(;[^:;\n]*)*:.*\r?\n?//gm;
}
if ($google || $yahoo) {
# default status is CONFIRMED
s/^STATUS:CONFIRMED\r?\n?//gm;