-
Notifications
You must be signed in to change notification settings - Fork 46
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Attach ICS to calendar update notifications #440
Comments
@yurabakhtin Can you please take a look into this? |
@dantefromhell Do you mean we should increase the column |
I was trying to find the sentence in RFC5545 which talks about this, but somehow wasn't able to. TL;DR from reading more (non-official e.g. [1]) documentation:
RFC5545 is pretty precise how the TL;DR: It starts with FYI I found a nice ICS validator tool in case that is helpful https://icalendar.org/validator.html#results |
@dantefromhell Thank you for the info, yes, you are right. I have found and tested this code https://github.com/humhub/calendar/blob/master/models/forms/CalendarEntryForm.php#L515-L519: $incrementSequence = $this->original->getStartDateTime() != $this->entry->getStartDateTime();
$incrementSequence = $incrementSequence || $this->original->getEndDateTime() != $this->entry->getEndDateTime();
$incrementSequence = $incrementSequence || $this->original->getRrule() !== $this->entry->getRrule();
$incrementSequence = $incrementSequence || $this->original->getExdate() !== $this->entry->getExdate();
$incrementSequence = $incrementSequence || $this->original->getEventStatus() !== $this->entry->getEventStatus(); It means the column Do you want to extend the list, for example, should we increase the |
Reading the RFCs my answer is yes. I propose that end-user calendars (e.g. Google) should be able to detect any event changes correctly, which I guess translates into updating Or maybe it's easier to just update the |
@dantefromhell Ok, thanks, I have extened the list of fields. |
@yurabakhtin @dantefromhell Thanks, I've just merged the PR |
The calendar module now has ICS file attachments in notification emails (#436 and #439) but these only trigger for newly created events, not when an event was updated.
My first primitive tests adjusting #436 to https://github.com/humhub/calendar/blob/master/notifications/EventUpdated.php in combination with a ProtonMail & Google hosted calendar resulted in duplicate events, instead of an updated event.
According to this Google Calendar Help article the
SEQ
field must be increased in the updated ICS to trigger updating an event.In my tests the
SEQ
field has been0
for all notifications sent.If I understand interfaces/VCalendar.php#L183 correctly the
SEQUENCE
field is only added to the ICS field ifgetSequence
actually returns a number, but this is where I've been getting lost in the code.I'm happy to either make this a bug report or with some support figure out what the correct PR needs to look like.
Please advise on what the best solution is.
The text was updated successfully, but these errors were encountered: