kidd / org-gcal.el

Org sync with Google Calendar. (active maintained project as of 2019-11-06)
432 stars 47 forks source link

compatibily with gnus-icalendar and mu4e-icalendar #163

Open p1llule opened 2 years ago

p1llule commented 2 years ago

Hi,

Currently there is an issue with this two packages and org-gcal :

org-gcal does not expect a blank Calendar heading in the calendars files but gnus-icalendar absolutely wants it :/

Even after fixing this manually by putting a valid event under the calendar heading, I am not sure that it will be took in consideration by org-gcal and there will not be duplicated entries.

Can org-gcal acknowledge the 'gnus-icalendar-org-capture-headline' (and avoid duplicating entries) ?

telotortium commented 2 years ago

Hi, org-gcal shouldn't download events twice in general, because it searches org-gcal-fetch-file-alist as well as agenda files for events.

Could you give an example of your use case?

On Sun, Sep 19, 2021, 09:50 p1llule @.***> wrote:

Hi,

Currently there is an issue with this two packages and org-gcal :

org-gcal does not expect a blank Calendar heading in the calendars files but gnus-icalendar absolutely wants it :/

Even after fixing this manually by putting a valid event under the calendar heading, I am not sure that it will be took in consideration by org-gcal and there will not be duplicated entries.

Can org-gcal acknowledge the 'gnus-icalendar-org-capture-headline' (and avoid duplicating entries) ?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/kidd/org-gcal.el/issues/163, or unsubscribe https://github.com/notifications/unsubscribe-auth/AANMVDK5RY5GEFCM2DYSJFDUCYIE7ANCNFSM5EKQJI4Q . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

p1llule commented 2 years ago

Ok, let alone the duplicating entries part.

My use case :

But, starting from a blank page,

If I remove the headline and fetch with org-gcal again, it works. If I keep the headline, accept an invitation and then fetch with org-gcal, it works.

telotortium commented 2 years ago

Hi, could you be a bit more specific about

org-gcal shouldn't care about any void gnus-icalendar-org-capture-headline.

On Sun, Sep 19, 2021 at 10:12 AM p1llule @.***> wrote:

Ok, let alone the duplicating entries part.

My use case :

  • to receive an invitation by mail.
  • with gnus-icalendar or mu4e-icalendar, I accept the invitation.
  • A new heading is created for this appointment under gnus-icalendar-org-capture-headline in gnus-icalendar-org-capture-file
  • I want to use the same file for gnus-icalendar-org-capture-file and org-gcal-fetch-file-alist (I can then manage multiple calendars for each of my mails by making gnus-icalendar-org-capture-file a mu4e-context variable that is switched when I switch of mail address ... )

But, starting from a blank page,

  • I create the gnus-icalendar-org-capture-file with its gnus-icalendar-org-capture-headline, no appointments yet.
  • I setup org-gcal, try to fetch, it does not allow it because of the void gnus-icalendar-org-capture-headline.

If I remove the headline and fetch with org-gcal again, it works. If I keep the headline, accept an invitation and then fetch with org-gcal, it works.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/kidd/org-gcal.el/issues/163#issuecomment-922506479, or unsubscribe https://github.com/notifications/unsubscribe-auth/AANMVDIQNS3H74KJBZUZDCLUCYKWBANCNFSM5EKQJI4Q . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

-- Robert Irelan @.***