-
Notifications
You must be signed in to change notification settings - Fork 241
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
New and updated appointments are not sent via e-mail #5706
Comments
I can understand the problem very well. |
Any update on this issue! |
Same here, fresh install on Debian12, PHP 8.2, MariaDB, Apache, NC 28.0.2. |
Further to that, creating an event via CalDav (Davx here), does not trigger sending an email to the invited |
Can you check your logs for any errors? |
nextcloud.log |
Nothing in the logs. Can you enable debug mode and try again? |
Today I downloaded Google Calendar on my Android device and I created a new appointment with invited attendees and nextcloud calendar sent the expected invitations through email. If I do the same things in my Android calendar app called fossify calendar 1.0.2 (new version of simple calendar app) and start Davx5 to synchronize with my nextcloud, no invitations will be sent. Very strange. |
As I can see, a new version of Davx5 will be released with the next hours. Version davx5-ose-4.3.13-ose-release.apk. As Google calendar works maybe this bug is linked to Davx5? On the other hand the invitations are also not sent if the calendar entry has been created directly in nextcloud itself. |
nextcloud (2).log |
This is really a critical bug for a calendar not to sent invites. How can I help ? |
I can't reproduce - invitations get sent. Is there anything special about the attendee email addresses? I've tried with both other users and external attendees and the emails get sent. Are the calendar you're trying to invite someone to special? Calendars that have been shared / are shared with you? |
Since Nextcloud 28.0.3 the emails have been sent again. But it still remains unpleasant with Gmail addresses. Equally problematic: Calendars can now be subscribed to again. Thank you!! |
you mean in the associated gmail calendar? For any invitation you accept via link, if you don't use the integrated iMIP service (native accept/decline buttons in your clients) only the nextcloud instance calendar will be updated; unless you have an email address that is associated with a calendar principal on this nextcloud instance, then it will work. That is just how the protocol works. |
I mean that the person otherwise has no opportunity to accept the appointment. Unfortunately, there is no appointment request from the Nextcloud calendar. Only the ICS attachments. Now I'm not sure whether this is a Google problem or a Nextcloud problem. Sorry for my bad english. 😉 |
Sometimes emails are sent, sometimes not. |
Can you tell me step by step what happens? So:
and what you expect to happen, too? Maybe I can get a clearer picture what you're looking for and where the issue is. |
Steps for new appointment:
Steps for changing an appointment:
When an email is sent, there are 1 - 2 .ICS files attached. The invitee's different mail client (Gmail App, K-9) sometimes interprets the invitation as such and offers "accept" / "reject". But sometimes not. Expectation: |
Can you tell me if you use Ajax Cron, WebCron or Cron? You can find that in your admin settings in "Basic Settings". |
The second one might be down to what changed about the event (let's please call them events, appointments are another feature of the calendar app and it confuses me 😅 ). There's something called a "significant change" in calendaring, so if you only changed the title of an event, that is not enough to trigger an update email. If you change the date and / or time, that is. Are there any special chars in those gmail email addresses you're sending too? Might be related to #2149 or if you're using Gmail for SMTP, it might be related to this: #3681 |
Ok, I understand. I have now tried again.
Unfortunately, it is not good that points 6 and 8 are not updated for the invited persons. This is because when a renamed event is canceled, it is not removed from the calendar. The K9 Mail app does not recognize the invitation as an event. The GoogleMail app, on the other hand, does. I don't know why it suddenly works now, but there was a recent update to the NC calendar. 🤷♂️ I will continue to monitor this. Maybe I can switch to Nextcloud completely soon. |
It seems that mail is only sent when you create an event in the NC calendar. But not in an Android app like ETAR or the Google Calendar app. |
How did you connect your Nextcloud Calendar to your Google Calendar App? Same for ETAR (although Ive never used that one myself). As for the significant changes, the RFC defines the following properties that trigger a significant change:
The location is a CAN but not a MUST for the event. It's definitely worth a discussion if that should trigger an event.
That's very likely a K9 issue. We do set the correct Mail headers for Mail Clients to parse the invitation data. |
I have DAVx5 installed on my smartphone, which allows me to see and edit the calendars in Google Calendar and ETAR. I think it would be good if the change of location triggered information. It is equally important if the title of the event and a comment are changed. This is also the case with standard calendars (Outlook/Exchange, Google Calendar, etc.). |
I need to make a correction.
This means that the event update is not forwarded correctly. I suggest you try this out for yourself. You will see that it does not work correctly. |
is this a NC calendar that was added to google with DavX5? Or is it a Google calendar? |
No, this is the event that was created by the invitation in Google Calendar. |
You updated an event. You accepted an event. Which calendar did you store the accepted event in - a calendar created and managed by Google Calendar, or a calendar created and managed by Nextcloud that is accessible for you on your phone via DavX5. |
The accepted event is in someone else's Google Calendar. I think it has to do with when the content of an appointment is changed. If the title, location and/or description changes and then the time, it no longer works. The same happens when someone else sends me an event. Postponements are implemented, but if the content of the event changes, the error also occurs there. |
But the one that is supposed to do the updating is Google Calendar, right? If so there's nothing we can do about that. |
No. The changes are made in the Nextcloud calendar. At least that's how it looks. |
To my understanding, this has nothing to do with Google calendar. My setup is latest nextcloud and latest calendar app in nc. Steps to reproduce:
If I do exactly the same on my Android device using Google calendar app (no Google account), the expected invitation email gets sent. I wonder if this has something to do with nc calendar app or fossify calendar app. In the past, let's say 2 months ago, this was working like charm. Thank you |
Possibly related to nextcloud/server#41084 |
There are (at least) two separate issues discussed here:
I believe this discussion would greatly benefit if we would have ICS files of the events (exported from nextcloud or from the email attachments) for the steps of the reproduction section where it worked or did not work as expected. |
I would have an ICS file. Initially I was able to invite a GMail contact to it. It was also possible to reschedule an appointment. If I now postpone this appointment, no notification is sent. I have only "renamed" the email addresses because I don't want these addresses to be public. If you look at the file in an editor, you will notice that the mail address is wrapped in line 38. I don't know whether this plays a role or is related to the export from the NC calendar. |
Can you please let me know how I can generate ics files using Android device with Google calendar app and davx5. So I can compare the non working ics with the working ics files. Thank you |
Ok, I will create two same events and will compare the ics files. To my understanding I think Google calendar app on Android and e.g. fossify calendar app on Android are creating the events in a different way. As mentioned, events created with Google calendar app causes nc calendar do send the email invitation. So I wonder if for debug reasons the log level from davx5 my show different data for the same calendar event. |
Here are my results - I created two same events on my android smartphone with two different apps. Google Calendar app on android device -> the inviation e-mail was sent: fossify calendar app on android -> no inviation e-email was sent: Differences: <style> p.Normal {margin:0.0pt; margin-top:0.0pt; margin-bottom:0.0pt; margin-left:0.0pt; margin-right:0.0pt; text-indent:0.0pt; font-family:"Basic Sans"; font-size:10.0pt; color:Black; font-weight:normal; } </style>
|
Only regarding relation to issue #41084:
Sorry that I can't be more of a help here. |
I installed the Fossify calendar app on my phone and tested it myself while debugging through our Nextcloud instance. The reason Nextcloud does not send an invite is that it thinks the invited attendee is a room or resource. This is due to |
Question to Nextcloud devs: is this expected behavior or is the Nextcloud check |
See nextcloud/server#40876. Maybe we could remove |
Found a second check on the It's unrelated to this issue as the code path uses an |
Yeah we could, that would be fine I think. The original code was introduced with nextcloud/server@bcce568 - I oriented myself on that but the RFC doesn't specify that the CU type |
Hi, I upgraded to version 29.0.1. and I happy to report that this bug is fixed in my setup - Android phone, fossify calendar, davx5 sync to nextcloud. Thank you very much 👍😊 |
Funny. I still have the same problem with the Fossify Calendar. But otherwise it looks really good now. Unfortunately, I can't accept appointment confirmations with K9 Mail, but that's probably due to K9 Mail. |
I also use k9 and in the invitation email there is the ics file and a link to the online nextcloud invitation answer form. K9 cannot handle ics files and I also have to use the link button. But if I open the same email in outlook I can accept or decline directly in the email / calendar invitation. |
Yes, it now works without any problems with Outlook, emClient, FairEmail. Thanks for that! |
Steps to reproduce
Expected behavior
The newly created calendar entry should be sent via e-mail to the invited attendee.
Actual behaviour
No e-mail is sent. Also no e-mails are sent for changed calendar entries.
Only if a newly created entry will be cancelled an e-mail with the cancellation is sent.
Regardless if you create the calendar item directly in nextcloud calendar app or via DAVx5 or Thunderbird calendar, the result is the same. No e-mail with the invitation are sent any more. This worked create before the last update to calendar version 4.6.4.
Calendar app version
4.6.4
CalDAV-clients used
No response
Browser
No response
Client operating system
No response
Server operating system
No response
Web server
None
Database engine version
None
PHP engine version
None
Nextcloud version
No response
Updated from an older installed version or fresh install
None
List of activated apps
No response
Nextcloud configuration
No response
Web server error log
No response
Log file
No response
Browser log
No response
Additional info
No response
The text was updated successfully, but these errors were encountered: