summaryrefslogtreecommitdiffstats
path: root/apps/sharebymail/lib/ShareByMailProvider.php
Commit message (Collapse)AuthorAgeFilesLines
* Honour "sendPasswordByTalk" property in mail sharesDaniel Calviño Sánchez2018-07-241-2/+3
| | | | | | | | | | | | | | | | | When a password was set for a mail share an e-mail was sent to the recipient with the password. Now the e-mail is no longer sent if the password is meant to be sent by Talk. However, before the e-mail was not sent when the share was updated but the password was not changed. Now an e-mail is sent in that case too if switching from a password sent by Talk to a password sent by mail. On the other hand, when switching from a password sent by mail to a password sent by Talk it is mandatory to change the password; otherwise the recipient would already have access to the share without having to call the sharer to verify her identity. Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
* Store "sendPasswordByTalk" property of mail shares in the databaseDaniel Calviño Sánchez2018-07-241-2/+8
| | | | Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
* some small template fixesBjoern Schiessle2018-07-211-2/+2
| | | | Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
* add direct link to the shareBjoern Schiessle2018-07-211-0/+7
| | | | Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
* fix mail templatesBjoern Schiessle2018-07-211-3/+3
| | | | Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
* add note to share object when reading it from the dbBjoern Schiessle2018-07-211-0/+1
| | | | Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
* improve mail template and escape html codeBjoern Schiessle2018-07-211-12/+5
| | | | Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
* allow to add a personal note to a shareBjoern Schiessle2018-07-211-0/+60
| | | | Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
* Add API to undelete delete group sharesRoeland Jago Douma2018-07-051-0/+5
| | | | | | | | | | | When a group share is deleted we keep track of this in the DB. Right now it is only possible for a recipient to get back the share by asking the sharer to delete it and to share it again. This doesn't scale. This endpoint makes it possible to get back the share. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* move log constants to ILoggerArthur Schiwon2018-04-261-2/+2
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* Fix existing usagesJoas Schilling2018-02-151-2/+2
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Remove useless return statementsMorris Jobke2018-01-251-3/+0
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Properly log the full exception instead of only the messageMorris Jobke2018-01-231-2/+10
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Set the data from the templateJoas Schilling2017-10-181-9/+3
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Set the subject with the email template to allow themingJoas Schilling2017-10-181-7/+7
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* do not show hyphen after instance name in emails if slogan does not existStephan Müller2017-09-251-1/+1
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Merge setMetaData into constructorJoas Schilling2017-09-041-6/+3
| | | | | | This ensures that the meta data is set in the beginning Signed-off-by: Joas Schilling <coding@schilljs.com>
* Implement metadata for email templates of remaining emailsMorris Jobke2017-08-301-0/+14
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Add shareWith to email template metadataMorris Jobke2017-08-291-0/+1
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Allow the expiration date to be set to nullMorris Jobke2017-08-281-1/+1
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Allow the expiration date to be set to nullMorris Jobke2017-08-261-2/+2
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Add meta information to emails for better customisationJoas Schilling2017-08-241-2/+11
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Merge pull request #5734 from nextcloud/only-readable-chars-in-share-tokensJoas Schilling2017-07-191-2/+1
|\ | | | | Only use readable chars in Share Tokens
| * Only use readable chars in Share TokensJoas Schilling2017-07-181-2/+1
| | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | Run phan over code baseLukas Reschke2017-07-191-1/+2
|/ | | | Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
* use the email address configured in Nextcloud as sender instead of the users ↵Bjoern Schiessle2017-06-081-2/+15
| | | | | | email address Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
* no "mail" or mid sentence "E-mail"comradekingu2017-05-291-2/+2
|
* don't mention the owner of a file in case of a re-share by mail. The ↵Bjoern Schiessle2017-05-081-20/+8
| | | | | | recipient doesn't care about the owner and probably don't even know it Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
* fix typoMorris Jobke2017-04-201-1/+1
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Fix casingMorris Jobke2017-04-201-1/+1
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* fix unit testsBjoern Schiessle2017-04-201-6/+0
| | | | Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
* respect password policy for auto generated passwordsBjoern Schiessle2017-04-201-3/+32
| | | | Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
* improve mail textBjoern Schiessle2017-04-201-3/+2
| | | | Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
* create activity if a password was send by mailBjoern Schiessle2017-04-201-16/+57
| | | | Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
* allow admin to enforce password on mail sharesBjoern Schiessle2017-04-201-18/+116
| | | | Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
* Rename renderHTML to renderHtmlMorris Jobke2017-04-191-2/+2
| | | | | | | * fixes #4383 * improves consistency Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Fix indentationLukas Reschke2017-04-191-1/+1
| | | | Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
* Add "Reply-To" on ShareByMailProvider mailsLukas Reschke2017-04-181-7/+49
| | | | | | Fixes https://github.com/nextcloud/server/issues/4209 Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
* Mail shares trigger the public keyRoeland Jago Douma2017-04-131-1/+1
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Adjust docs and make !$currentAccess simplerJoas Schilling2017-04-131-0/+3
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Add mail element to access listRoeland Jago Douma2017-04-131-1/+21
| | | | | | | | * Each provider just returns what they have so adding an element won't require changing everything * Added tests Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Offload acceslist creation to providersRoeland Jago Douma2017-04-131-0/+4
| | | | | | | | * This allows for effective queries. * Introduce currentAccess parameter to speciy if the users needs to have currently acces (deleted incomming group share). (For notifications) Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Dont add click-button text for plaintext mailsJoas Schilling2017-04-121-3/+4
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Don't duplicate the sentence with the headerJoas Schilling2017-04-121-1/+1
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Use new email design for sharebymail emailsMorris Jobke2017-04-121-60/+39
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* properly quota table names in getSharesInFolderRobin Appelman2017-04-101-1/+1
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* setting to disable sending password by mailBjoern Schiessle2017-04-031-1/+13
| | | | Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
* set expire date for all share typesBjoern Schiessle2017-04-031-0/+9
| | | | Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
* allow password protected mail sharesBjoern Schiessle2017-04-031-11/+72
| | | | Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
* fix share provider idBjoern Schiessle2017-04-031-1/+1
| | | | Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>