Calendar icon indicating copy to clipboard operation
Calendar copied to clipboard

Calendar events which invited attendees don't execute e-mail notification

Open stoneubi opened this issue 1 year ago • 17 comments

Checklist

  • [X] I can reproduce the bug with the latest version given here.
  • [X] I made sure that there are no existing issues - open or closed - to which I could contribute my information.
  • [X] I made sure that there are no existing discussions - open or closed - to which I could contribute my information.
  • [X] I have read the FAQs inside the app (Menu -> About -> FAQs) and my problem isn't listed.
  • [X] I have taken the time to fill in all the required details. I understand that the bug report will be dismissed otherwise.
  • [X] This issue contains only one bug.
  • [X] I have read and understood the contribution guidelines.

Affected app version

1.0.2

Affected Android/Custom ROM version

Android 13

Affected device model

Realme 10

How did you install the app?

F-Droid / IzzyOnDroid

Steps to reproduce the bug

Using latest nextcloud version 28.0.1 causes a problem with calendar invitations.

Usually if you create an event on a Android device using simple mobile calendar having attendees invited nextcloud sends an invitation email to the user.

Since the last update of simple calendar this emails are not sent anymore. This means if you invite members to an event in simply calendar and you sync it to next cloud then this invitation emails are not sent anymore. Even if you update any shared events updates are not sent via email. Only if you delete an event with attendees an email will be sent to this users.

If you use Google calendar on the Android device or if you create any calendar entries with NTS in for example Thunderbird calendar these emails are sent correctly.

So it seems that within simple calendar that must be an issue that causes nextcloud not sending any emails.

Hopefully you can invest some time to check if this can be fixed within simple calendar app as this app is gorgeous.

Thank you

Expected behavior

Calendar events with invited members should be sent via nextcloud email. The calendar app creates events different to e.g. Google calendar where mentioned events are working fine

Actual behavior

As described above

Screenshots/Screen recordings

No response

Additional information

No response

stoneubi avatar Feb 04 '24 21:02 stoneubi

can confirm this issue. i have looked at the .ics file, and SCHEDULE-STATUS is always set to 1.0, but it should, at least at some point, be set to 1.1. with other clients, it is at 1.1. i don't know if the client should set it to 1.1, or if 1.0 is correct and nextcloud should set it to 1.1 after nextcloud sends an email. in any case, it is stuck at 1.0 and never sends an email.

it could also be that it is because CUTYPE=UNKNOWN is set, or possibly also because of this in combination with PARTSTAT=NEEDS-ACTION.

also, with the stock android calendar app, everything works fine, so this is not an issue of davx5.

zmberber avatar Mar 05 '24 00:03 zmberber

I upgraded to NC 28.0.3 and the latest calendar app in NC and the problem still exists.

Newly created calendar items with invited persons with e-mail addresses won't get any invitation via e-mail. The item will be created in the calendar app in Nextcloud but no invitation will be sent.

If your delete this items in fossify on your mobile phone e-mails with cancellation will be sent.

If you do the same with Google calendar app everything works fine. Also directly in NC and via Thunderbird calendar all emails are sent successfully.

This is very annoying and it's seems that no one here is trying to solve this problem.

Is fossify calendar app under no development?

stoneubi avatar Mar 08 '24 08:03 stoneubi

Is fossify calendar app under no development?

It is, but it's hard to fix every bug instantly in so many apps when Fossify for us isn't a full-time job. But we're happy for contributions from community if anybody knows how to fix reported bugs.

Aga-C avatar Mar 08 '24 08:03 Aga-C

@Aga-C thank you for responding!

would you happen to know where/how the ics files and their properties are generated in the code? i would play around with some parameters and possibly make a pull request. i think SCHEDULE-STATUS might be the culprit.

zmberber avatar Mar 08 '24 12:03 zmberber

@zmberber AFAIK CalDAV whole synchronization is in this file: https://github.com/FossifyOrg/Calendar/blob/master/app/src/main/kotlin/org/fossify/calendar/helpers/CalDAVHelper.kt. However, there's no ICS related code, but you may try to change how Android's calendar database is updated in updateCalDAVEvent and fillEventContentValues methods. ICS is only used for importing and exporting events in IcsExporter.kt and IcsImporter.kt files in the same directory.

Aga-C avatar Mar 08 '24 15:03 Aga-C

hm, i am having difficulties understanding how this works, i am not experienced with that kind of code, sadly, so i am not sure if i can make the changes myself.

i am going to do a bit more troubleshooting by uploading .ics files to my caldav server (nextcloud), and if certain flags make my server send an email, and the ones that the fossifyorg calendar one sets don't make my caldav server send an email, then the problem should be able to be resolved if the code is changed such that caldav synchronization works in such a way that the resulting .ics file has the correct flags.

zmberber avatar Mar 11 '24 12:03 zmberber

I updated nextcloud calendar and fossify calendar to the latest version. Still the same. If I create an event with invited email addresses in the calendar app fossify and let it sync via davx5 to my nextcloud, nextcloud won't send any invitation emails.

If I do exactly the same with Google calendar app on my Android device invitations are sent.

This used to work fine in the past.

Please help do make this work again.

Thank you

stoneubi avatar Mar 24 '24 16:03 stoneubi

Screenshot_2024-03-24-18-00-01-19_69738a090b59888d6f9e64a3ebfe2c88.jpg

stoneubi avatar Mar 24 '24 17:03 stoneubi

I created two same events on my android phone. One using google calendar app -> invitation e-mail was sent and one with fossify app and no inviation e-mail was sent:

BEGIN:VCALENDAR BEGIN:VCALENDAR
VERSION:2.0 VERSION:2.0
PRODID:DAVx5/4.3.15-ose ical4j/3.2.14 (org.fossify.calendar) PRODID:DAVx5/4.3.15-ose ical4j/3.2.14 (com.google.android.calendar)
BEGIN:VTIMEZONE BEGIN:VTIMEZONE
TZID:Europe/Vienna TZID:Europe/Vienna
LAST-MODIFIED:20230104T023643Z LAST-MODIFIED:20230104T023643Z
BEGIN:DAYLIGHT BEGIN:DAYLIGHT
TZNAME:CEST TZNAME:CEST
TZOFFSETFROM:+0100 TZOFFSETFROM:+0100
TZOFFSETTO:+0200 TZOFFSETTO:+0200
DTSTART:19810329T020000 DTSTART:19810329T020000
RRULE:FREQ=YEARLY;BYMONTH=3;BYDAY=-1SU RRULE:FREQ=YEARLY;BYMONTH=3;BYDAY=-1SU
END:DAYLIGHT END:DAYLIGHT
BEGIN:STANDARD BEGIN:STANDARD
TZNAME:CET TZNAME:CET
TZOFFSETFROM:+0200 TZOFFSETFROM:+0200
TZOFFSETTO:+0100 TZOFFSETTO:+0100
DTSTART:19961027T030000 DTSTART:19961027T030000
RRULE:FREQ=YEARLY;BYMONTH=10;BYDAY=-1SU RRULE:FREQ=YEARLY;BYMONTH=10;BYDAY=-1SU
END:STANDARD END:STANDARD
END:VTIMEZONE END:VTIMEZONE
BEGIN:VEVENT BEGIN:VEVENT
DTSTAMP:20240326T190054Z DTSTAMP:20240326T190233Z
UID:df3cc969-67d3-4995-b966-9ae5297774d5 UID:5acc825f-f527-415a-bd68-09b7468cbcb7
SUMMARY:Test created in fossify calendar app on Android SUMMARY:Test created in Google calendar app on Android
DTSTART;TZID=Europe/Vienna:20240407T130000 DTSTART;TZID=Europe/Vienna:20240407T130000
DTEND;TZID=Europe/Vienna:20240407T140000 DTEND;TZID=Europe/Vienna:20240407T140000
STATUS:CONFIRMED ORGANIZER:mailto:[email protected]
ORGANIZER:mailto:[email protected] ATTENDEE;RSVP=TRUE;SCHEDULE-STATUS=1.1:mailto:[email protected]
ATTENDEE;RSVP=TRUE;CUTYPE=UNKNOWN;PARTSTAT=NEEDS-ACTION;SCHEDULE-STATUS=1.0 ATTENDEE;RSVP=TRUE;CN=Kalender;PARTSTAT=ACCEPTED:mailto:my-email-adress@yyyyyyy
:mailto:[email protected] y.com
END:VEVENT END:VEVENT
END:VCALENDAR END:VCALENDAR

stoneubi avatar Mar 26 '24 19:03 stoneubi

I also reported this issue here: https://github.com/nextcloud/calendar/issues/5706

stoneubi avatar Mar 26 '24 19:03 stoneubi

Just wanted to drop by and say I too am seeing this issue. But found the etar calendar works, so maybe it could provide a way to fix this? Source for etar is below in case it helps

https://github.com/Etar-Group/Etar-Calendar

deathblade666 avatar Apr 03 '24 14:04 deathblade666

@deathblade666 the stock android calendar also works in this regard, which is what i use when the sending of invitations is important. and that is installed by default (and in fact sometimes plays a role for other calendar apps, since it is somehow baked into calendar functionality for android or something)

zmberber avatar Apr 03 '24 14:04 zmberber

@deathblade666 the stock android calendar also works in this regard, which is what i use when the sending of invitations is important. and that is installed by default (and in fact sometimes plays a role for other calendar apps, since it is somehow baked into calendar functionality for android or something)

That's true, I posted my comment in hopes that it may lead to some helpful info that could aid in getting this fixed. As I would prefer to use this app over others

deathblade666 avatar Apr 03 '24 18:04 deathblade666

Any news on this bug?

stoneubi avatar Apr 09 '24 20:04 stoneubi

I also reported this issue here: nextcloud/calendar#5706

It is not Nextcloud's problem. If you create or update one event in Nextcloud, emails are sent.

I confirm the issue. I've tried with other app (via Caldav, using DAVx5), as ETAR, and emails are sent. I'm using Nextcloud 28 and Fossify's Calendar, version 1.0.3

Yes, the question is, why don't use you those apps? :-) Because I love this app. I loved when it was SMT and now, Fossify.

thank's for your work.

Joinzar avatar Apr 15 '24 22:04 Joinzar

Any news on this bug?

Nope, no progress yet.

naveensingh avatar Apr 16 '24 08:04 naveensingh

I also have this issue, Nextcloud 29 As it used to work well, there should have been a recent change that broke it.

gvansanden avatar May 27 '24 09:05 gvansanden

I found this thread in the Nextcloud forums with some extra information: https://help.nextcloud.com/t/nextcloud-calendar-not-sending-invitation-when-creating-from-android-app/69363/3

kchopein avatar Oct 27 '24 06:10 kchopein

It is a pity that no e-mail is sent when creating an appointment with an invited person. However, if I delete the appointment again, a rejection is sent to the invited person. But as long as no invitations are sent, this unfortunately makes the app unusable.

Markoise avatar Nov 24 '24 14:11 Markoise

Hi I this moment, e-mails are sent, as invitation and when editing or erasing.

El dom., 24 nov. 2024 15:12, Markoise @.***> escribió:

It is a pity that no e-mail is sent when creating an appointment with an invited person. However, if I delete the appointment again, a rejection is sent to the invited person. But as long as no invitations are sent, this unfortunately makes the app unusable.

— Reply to this email directly, view it on GitHub https://github.com/FossifyOrg/Calendar/issues/135#issuecomment-2496025174, or unsubscribe https://github.com/notifications/unsubscribe-auth/AJFWMGOLUNPPU3V3SHDJXAL2CHNEHAVCNFSM6AAAAABCZEUHYGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDIOJWGAZDKMJXGQ . You are receiving this because you commented.Message ID: @.***>

Joinzar avatar Nov 24 '24 14:11 Joinzar

Looks like it working for me just fine. since a few updates ago. (forgot to post about it till now)

deathblade666 avatar Nov 24 '24 16:11 deathblade666

Looks like it working for me just fine. since a few updates ago. (forgot to post about it till now)

I have not received an invitation email. Only when an appointment is canceled

Markoise avatar Nov 24 '24 16:11 Markoise

Same here. It worked again after I reported the bug at the nextcloud calendar github repo. But now with fossify it is not working again. I guess it was caused by an nc calendar update.

Solution at the moment: I use Google calendar app to create entries as fossify is not working and not responding to this issue at all.

stoneubi avatar Dec 01 '24 09:12 stoneubi