summaryrefslogtreecommitdiffstats
path: root/apps/dav/lib/CalDAV/Schedule
Commit message (Collapse)AuthorAgeFilesLines
* fix(dav): allow multiple organizers if possibleRichard Steinmetz2023-12-171-1/+67
| | | | | | | | | This is very hacky! However, we want to allow saving events with multiple organizers. Those events are not RFC compliant, but sometimes imported from major external calendar services (e.g. Google). If the current user is not an organizer of the event we ignore the exception as no scheduling messages will be sent anyway. Signed-off-by: Richard Steinmetz <richard@steinmetz.cloud>
* chore: apply changes from Nextcloud coding standards 1.1.1Joas Schilling2023-11-233-20/+20
| | | | | Signed-off-by: Joas Schilling <coding@schilljs.com> Signed-off-by: Benjamin Gaussorgues <benjamin.gaussorgues@nextcloud.com>
* feat(user status): automate user status for eventsAnna Larch2023-11-091-0/+2
| | | | | | | and automatically set a user status to free or busy depending on their calendar transparency, event status and availability settings Signed-off-by: Anna Larch <anna@nextcloud.com>
* fix(scheduling): don't send iMIP emails to rooms / resourcesAnna Larch2023-11-062-10/+27
| | | | Signed-off-by: Anna Larch <anna@nextcloud.com>
* Merge pull request #38610 from fsamapoor/replace_strpos_calls_in_dav_appChristoph Wurst2023-09-171-3/+3
|\ | | | | Refactors "strpos" calls in /apps/dav
| * Refactors "strpos" calls in /apps/dav to improve code readability.Faraz Samapoor2023-06-121-3/+3
| | | | | | | | Signed-off-by: Faraz Samapoor <f.samapoor@gmail.com>
* | feat(caldav): linkify location in scheduling mailsRichard Steinmetz2023-08-091-2/+42
|/ | | | Signed-off-by: Richard Steinmetz <richard@steinmetz.cloud>
* Merge pull request #36118 from ↵Anna2023-05-101-6/+4
|\ | | | | | | | | nextcloud/fix/caldav/invitation-outlook-compatibilty Fix calendar emails to be outlook compatible
| * Fix calendar emails to be outlook compatibleAnna Larch2023-02-211-6/+4
| | | | | | | | Signed-off-by: Anna Larch <anna@nextcloud.com>
* | fix(dav): Parse sender PARTSTAT in REPLYsAnna Larch2023-04-132-3/+35
| | | | | | | | Signed-off-by: Anna Larch <anna@nextcloud.com>
* | fix(dav): add string comparison for diffAnna Larch2023-04-071-3/+3
| | | | | | | | Signed-off-by: Anna Larch <anna@nextcloud.com>
* | Merge pull request #36661 from onny/event-update-mail-subjectSimon L2023-03-162-2/+8
|\ \ | | | | | | Invitation mail: Change subject if event got updated
| * | Invitation mail: Change subject if event got updatedJonas Heinrich2023-02-202-3/+8
| |/ | | | | | | Signed-off-by: Jonas Heinrich <heinrich@synyx.de>
* | Merge pull request #36935 from nextcloud/fix/noid/imip-plugin-null-hardeningRichard Steinmetz2023-03-022-8/+23
|\ \ | | | | | | fix(caldav): harden null handling of iMip scheduling method
| * | fix(caldav): harden null handling of iMip scheduling methodRichard Steinmetz2023-03-022-8/+23
| | | | | | | | | | | | Signed-off-by: Richard Steinmetz <richard@steinmetz.cloud>
* | | Merge pull request #36594 from nextcloud/fix-handling-of-invitationsblizzz2023-03-021-8/+29
|\ \ \ | |/ / |/| | fix(caldav): Correctly handle calendar recreation for invitations when the current calendar is in the trashbin
| * | fix(caldav): Correctly handle calendar recreation for invitations when the ↵Thomas Citharel2023-02-091-8/+29
| | | | | | | | | | | | | | | | | | | | | | | | current calendar is in the trashbin Follow-up to #32361, see https://github.com/nextcloud/calendar/issues/4098 for details Signed-off-by: Thomas Citharel <tcit@tcit.fr>
* | | fix(caldav): convert iMip recipient name to a stringRichard Steinmetz2023-02-281-1/+1
| |/ |/| | | | | Signed-off-by: Richard Steinmetz <richard@steinmetz.cloud>
* | l10n: Fixed grammarrakekniven2023-02-111-1/+1
|/ | | | | | | | Reported at Transifex. Signed-off-by: rakekniven <2069590+rakekniven@users.noreply.github.com> Signed-off-by: rakekniven <2069590+rakekniven@users.noreply.github.com>
* Use recurrence instance to build iMip emailAnna Larch2023-02-022-499/+709
| | | | | | | | instead of the main VEVENT of a repeating event Fixes part of https://github.com/nextcloud/calendar/issues/3919 Signed-off-by: Anna Larch <anna@nextcloud.com>
* Migrate to Symfony MailerCôme Chilliet2023-02-021-1/+6
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* [WIP] Add logging to Scheduling PluginAnna Larch2023-01-041-4/+13
| | | | Signed-off-by: Anna Larch <anna@nextcloud.com>
* Fix psalm issues related to signature changes from PHP 8.0Côme Chilliet2022-12-291-21/+15
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Fix duplicate event email notificationsRichard Steinmetz2022-11-041-9/+11
| | | | Signed-off-by: Richard Steinmetz <richard@steinmetz.cloud>
* Switch to DisplayNameCache for CardDAVAnna Larch2022-11-031-1/+1
| | | | Signed-off-by: Anna Larch <anna@nextcloud.com>
* Switch to DisplayNameCache for CalDAVAnna Larch2022-11-031-7/+2
| | | | Signed-off-by: Anna Larch <anna@nextcloud.com>
* Fix typos in apps/dav subdirectoryluz paz2022-07-261-2/+2
| | | | | | Found via `codespell -q 3 -S l10n -L jus ./apps/dav` Signed-off-by: luz paz <luzpaz@github.com>
* Put calendar invites into the user's first available calendarThomas Citharel2022-05-121-5/+39
| | | | | | | | | | If there's no default calendar and we can't find anything with URI 'personal', instead of creating a new one, start by using the first "real personal calendar" available. If not, then we create the default one. Signed-off-by: Thomas Citharel <tcit@tcit.fr>
* Migrate dav application from ILogger to LoggerInterfaceCôme Chilliet2022-05-021-17/+5
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Force Calendar Obejct Chnage Path to support public writeAnna Larch2021-11-081-0/+10
| | | | Signed-off-by: Anna Larch <anna@nextcloud.com>
* Fix default langauge detection for calendar invite emailsChristoph Wurst2021-10-131-1/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Send Invitation to Attendees with ROLE=REQ-PARTICIPANTAnna Larch2021-09-031-3/+11
| | | | Signed-off-by: Anna Larch <anna@nextcloud.com>
* Introduce ISecureRandom::CHAR_ALPHANUMERICJ0WI2021-07-081-1/+1
| | | | Signed-off-by: J0WI <J0WI@users.noreply.github.com>
* Add indications for the translatorsThomas Citharel2021-06-251-0/+3
| | | | Signed-off-by: Thomas Citharel <tcit@tcit.fr>
* Subjects for Invitation, Invitation cancellation and Invitation replies are ↵Paweł Lechowicz2021-06-251-3/+3
| | | | | | now localizable. Signed-off-by: Thomas Citharel <tcit@tcit.fr>
* Move DateTime::ATOM to DateTimeInterface::ATOMChristoph Wurst2021-06-231-2/+2
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Update php licensesJohn Molakvoæ (skjnldsv)2021-06-042-3/+4
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* change calendar invite emails to use pngs instead of svgsNick Sweeting2021-03-261-7/+7
| | | | Signed-off-by: Nick Sweeting <git@sweeting.me>
* Bump nextcloud/coding-standard from 0.3.0 to 0.5.0dependabot-preview[bot]2021-02-182-3/+3
| | | | | | | | | | Bumps [nextcloud/coding-standard](https://github.com/nextcloud/coding-standard) from 0.3.0 to 0.5.0. - [Release notes](https://github.com/nextcloud/coding-standard/releases) - [Changelog](https://github.com/nextcloud/coding-standard/blob/master/CHANGELOG.md) - [Commits](https://github.com/nextcloud/coding-standard/compare/v0.3.0...v0.5.0) Signed-off-by: dependabot-preview[bot] <support@dependabot.com> Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Check substr resultsRoeland Jago Douma2021-02-151-2/+5
| | | | | | | Else this might lead to unexpeted errors. Found by psalm. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Do not send imip email to invalid recipientsChristoph Wurst2021-02-111-0/+5
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Format code to a single space around binary operatorsChristoph Wurst2020-10-052-10/+10
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Update license headers for Nextcloud 20 (again)Christoph Wurst2020-09-071-0/+1
| | | | | | | There are still lots of outdated headers, so time for another round of updates. Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Merge pull request #17456 from ↵John Molakvoæ2020-09-041-54/+132
|\ | | | | | | brad2014/feature/brad2014/12391-improve-imip-mail-message-take-2
| * Minor cleanup: php-cs-fixer, tests, interface consistencyBrad Rubenstein2020-09-021-15/+17
| | | | | | | | | | | | | | | | | | | | | | IMipPlugin.php Removed blank lines to make php-cs-fixer happy. Minor cleanup: bugs found by Psalm static checker IEMailTemplate: The public interface to addBodyListItem also needs to include the new plainIndent parameter. IMipPlugin: Fixes an undefined variable for events that do not have DTEND. Also use explicit string conversion for parameters and properties in several places. The new email template adds an additional blank line before "button" links in plain text, so the tests were fixed to include that additional blank line. Signed-off-by: Brad Rubenstein <brad@wbr.tech>
| * Make icon set for CalDav event presentation, use in iMIP email.brad20142020-08-201-7/+7
| | | | | | | | | | | | | | | | | | | | iMIP e-mails were, as a hack, using filetypes icons for caldav elements (titles, locations). This commit creates a folder of caldav element icons. To start, they are used in iMIP emails, but eventually should be used by any app that wants to have icon labels for caldav elements. Signed-off-by: brad2014 <brad2014@users.noreply.github.com>
| * iMIP email improvements (take 2)brad20142020-08-201-51/+127
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This PR is a replacement for PR #17195. It is intended to be simpler to review and approve, with fewer changes, some disabled by default. It addresses issues #12391 and #13555, with the following changes: - The plainText of iMIP emails has been upgraded as described in issue #12391. The HTML design style has not been changed. - Some of the HTML and plainText content has been rearranged (simplified header language, moving the event title to from text body to the first item in the bullet list, spelling corrections, moving the description to the end of the list), per issue #12391. - The interface for EMailTemplate has been extended: addBodyListItem now takes an optional `plainIndent` parameter. Existing callers see no change. Where new calls set the new parameter >0, the list item label (metaInfo) is put in column 1, and the value is indented into column 2 (properly accounting for multiple lines, if any). - An optional dav config setting has been added, `invitation_list_attendees`. It defaults to 'no', leaving emails unchanged. If set by the site admin to 'yes', then iMIP emails include, for the organizer and each attendee, their name, email, and a ✔︎ if they have accepted the invitation. - Minor refactoring. Notes: - The labels for organizers and attendees list items are new, and require translation/localization. - Dav config settings are documented in the code, but not in the Administrator's Guide. Signed-off-by: brad2014 <brad2014@users.noreply.github.com>
* | Update the license headers for Nextcloud 20Christoph Wurst2020-08-241-0/+1
|/ | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Fix some MissingDocblockType or InvalidDocblock warnings.Daniel Kesselberg2020-08-141-1/+1
| | | | Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* Update license headers for 19Christoph Wurst2020-04-292-0/+3
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>