Execute ical update on change

This commit is contained in:
Andreas Schneider 2018-04-02 11:53:38 +02:00
parent 26d0cd400a
commit a20a9040b6
1 changed files with 9 additions and 1 deletions

View File

@ -52,7 +52,15 @@ func main() {
!ewsItem.End.Equal(calDavItem.End()) { !ewsItem.End.Equal(calDavItem.End()) {
// So times have changed. Update. // So times have changed. Update.
// TODO calDavItem.Update(ewsItem.Start, ewsItem.End)
err := c.UploadItem(calDavItem)
if err == nil {
log.Printf("Updated item %s (%s)\n", uid, ewsItem.Subject)
} else {
// Not fatal, but worth a note.
log.Println(err)
}
} }
} else { } else {
// Oops, seems the item vanished. // Oops, seems the item vanished.