summaryrefslogtreecommitdiffstats
path: root/apps/dav/lib/CalDAV/Schedule
Commit message (Collapse)AuthorAgeFilesLines
* 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>
* Provide dav setting for user's default calendarThomas Citharel2020-04-131-10/+27
| | | | | | And add tests to handle schedule-default-calendar-URL Signed-off-by: Thomas Citharel <tcit@tcit.fr>
* Add visibility to all constantsChristoph Wurst2020-04-101-4/+4
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Add visibility to all methods and position of static keywordChristoph Wurst2020-04-101-3/+3
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Format control structures, classes, methods and functionChristoph Wurst2020-04-101-3/+2
| | | | | | | | | | | | | | | To continue this formatting madness, here's a tiny patch that adds unified formatting for control structures like if and loops as well as classes, their methods and anonymous functions. This basically forces the constructs to start on the same line. This is not exactly what PSR2 wants, but I think we can have a few exceptions with "our" style. The starting of braces on the same line is pracrically standard for our code. This also removes and empty lines from method/function bodies at the beginning and end. Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Use elseif instead of else ifChristoph Wurst2020-04-101-1/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Unify function spacing to PSR2 recommendationChristoph Wurst2020-04-091-1/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Add default titles for titleless events in invitationsThomas Citharel2020-04-031-1/+4
| | | | | | Closes #19662 Signed-off-by: Thomas Citharel <tcit@tcit.fr>
* Update the license headers for Nextcloud 19Christoph Wurst2020-03-311-0/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Use the short array syntax, everywhereChristoph Wurst2020-03-261-2/+2
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Fix display of DTEND for multi-day all-day eventGeorg Ehrke2020-01-301-0/+4
| | | | Signed-off-by: Georg Ehrke <developer@georgehrke.com>
* Update license headersChristoph Wurst2019-12-052-2/+7
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Set common-name to user's displayname if none is setGeorg Ehrke2019-11-291-1/+16
| | | | Signed-off-by: Georg Ehrke <developer@georgehrke.com>
* Some php-cs fixesRoeland Jago Douma2019-11-222-1/+4
| | | | | | | | | | | * Order the imports * No leading slash on imports * Empty line before namespace * One line per import * Empty after imports * Emmpty line at bottom of file Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Make rooms / resources automatically reply to invitesGeorg Ehrke2019-08-261-2/+395
| | | | Signed-off-by: Georg Ehrke <developer@georgehrke.com>
* Merge pull request #12392 from ↵Roeland Jago Douma2019-08-151-3/+50
|\ | | | | | | | | brad2014/feature/properly-present-buttons-from-imip-mails Customize presentation of accept/decline buttons in iMip mail
| * Move dav.invitation_link_recipients from getSystemValue to getAppValuebrad20142019-07-311-13/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Per @georgehrke change request for PR #12392, instead of setting dav.invitation_link_recipients in the system config.php file, we set it in the database table oc_appconfig. Furthermore, the value of the config variable is always a string: 'yes' to include links in imip mail, 'no' to exclude them, or a comma-separated list of email addresses and/or domains for which they should be included. If not specified in oc_appconfig, the default is 'yes'. Signed-off-by: brad2014 <brad2014@users.noreply.github.com>
| * Revert 3ff3ed0c56 case-insensitive compares.Brad Rubenstein2019-02-281-2/+2
| | | | | | | | | | | | | | | | My oops. The comparisons, which are copied from the IMipPlugin shipped with sabre-io/dav, do not need to be case insensitive because the sender and recipient names are normalized by sabre, (see calls to getNormalizedValue in voboject/lib/ITip/Broker.php). Signed-off-by: Brad Rubenstein <brad@wbr.tech>
| * Respect RSVP parameter for attendees when adding accept/decline buttons.Brad Rubenstein2019-02-281-2/+17
| | | | | | | | | | | | | | If RSVP=TRUE parameter is FALSE or absent for an ATTENDEE, then do no present accept/decline buttons. The organizer isn't asking for an RSVP. Signed-off-by: Brad Rubenstein <brad@wbr.tech>
| * Customize presentation of accept/decline buttons in iMip mailBrad Rubenstein2019-02-281-4/+38
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fix Issue #11230 Only present accept/decline button links in iMip mail for REQUEST, not CANCEL or others. Fix Issue #12156 Implement config setting "dav.invitation_link_recipients", to control which invitation recipients see accept/decline button links. The default, for public internet facing servers, is to always include them. For a server on a private intranet, this setting can be set to the email addresses or email domains of users whose browsers can access the nextcloud server referenced by those accept/decline button links. It can also be set to "false" to exclude the links from all requests. Signed-off-by: Brad Rubenstein <brad@wbr.tech>
* | fix CUType reportingGeorg Ehrke2019-07-261-11/+16
| | | | | | | | Signed-off-by: Georg Ehrke <developer@georgehrke.com>
* | Revert "send invitations for shared calendars"Georg Ehrke2019-05-221-67/+0
|/ | | | This reverts commit a9c313ce451c701a2e065e34022659cf17523963.
* Calendar invitation: use system default instead of sender's language as fallbackGeorg Ehrke2018-10-241-1/+1
| | | | Signed-off-by: Georg Ehrke <developer@georgehrke.com>
* overwrite Sabre/DAV's handler for calendar-user-type to report correct user typeGeorg Ehrke2018-10-221-0/+25
| | | | Signed-off-by: Georg Ehrke <developer@georgehrke.com>
* Use numeric placeholders if there are multiple, so that RTL languages can ↵Joas Schilling2018-10-091-4/+4
| | | | | | operate better Signed-off-by: Joas Schilling <coding@schilljs.com>
* Update IMipPlugin.phprakekniven2018-07-301-1/+1
| | | Added space before ellipsis
* Typo fix: Triple dot to ellipsisrakekniven2018-07-291-1/+1
| | | Signed-off-by: Mark Ziegler <mark.ziegler@rakekniven.de>
* Also shorten the name of the invitation tokensJoas Schilling2018-07-121-1/+1
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Include accept / decline links in CalDAV invitation emailsGeorg Ehrke2018-06-291-6/+88
| | | | Signed-off-by: Georg Ehrke <developer@georgehrke.com>
* add resource / room principalsGeorg Ehrke2018-06-251-5/+17
| | | | Signed-off-by: Georg Ehrke <developer@georgehrke.com>