diff options
author | Jonas Smedegaard <dr@jones.dk> | 2024-09-02 18:35:09 +0200 |
---|---|---|
committer | Jonas Smedegaard <dr@jones.dk> | 2024-09-02 18:35:09 +0200 |
commit | 0c309e27a4219542457063fa24edf18525f27a02 (patch) | |
tree | 41ceff8082d2646e2d0323a3b6d52f6da96f1b6e | |
parent | f390cdcf15982f5843b24eeee30e0603d869acb8 (diff) |
fake some Data::ICal properties to silence Cal::DAV
-rwxr-xr-x | bin/events2md.pl | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/bin/events2md.pl b/bin/events2md.pl index f9363f9..76c6398 100755 --- a/bin/events2md.pl +++ b/bin/events2md.pl @@ -8,6 +8,42 @@ use Feature::Compat::Try; use FindBin qw($Bin); use lib "$Bin/../lib"; +# add bogus properties acknowledged uid to silence Cal::DAV +package Data::ICal::Entry::Alarm::None { + use base qw/Data::ICal::Entry::Alarm/; + + sub optional_unique_properties + { + qw( + duration repeat acknowledged uid + ); + } +} + +# add bogus properties acknowledged uid to silence Cal::DAV +package Data::ICal::Entry::Alarm::Display { + use base qw/Data::ICal::Entry::Alarm/; + + sub optional_unique_properties + { + qw( + duration repeat acknowledged uid + ); + } +} + +# add bogus properties acknowledged uid to silence Cal::DAV +package Data::ICal::Entry::Alarm::Email { + use base qw/Data::ICal::Entry::Alarm/; + + sub optional_unique_properties + { + qw( + duration repeat acknowledged uid + ); + } +} + use Getopt::Complete ( 'quiet!' => undef, 'verbose!' => undef, |