-
-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
[Bug]: Email notification for share, even when activity settings is disabled #33205
Comments
Bug is still present on v24.0.5. |
Ok so it seems this option of config.php can be set to false as workaround:
It triggers an email from within the core Mailer.php, which seems redundant with the activity app own mailer. Note that turning this option to false, does not prevent you to create links or to actually share a file to an email. also see: #26183 |
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This bug is still present, tested with 24.0.9. I see two approaches:
@szaimen You asked for feedback here (via label), do you need more information about that? |
This bug is still present in 24.0.12 and very annoying. Btw, |
@nextcloud/designers We currently have two possible mails when a file is shared to a user
I'd say it makes sense to check the setting of the activity app and not sending out any email notification then, would you agree? Then we could just add a check for this in server/lib/private/Share20/Manager.php Line 837 in c0e84cb
One thing worth to mention is that The activity option is disabled by default, so we may need to switch this? Also cc @artonge and @miaulalala for the activity app |
@juliushaertl what info would this contain? But generally yes, I would agree with your assessment to check the setting of the activity app. If people say no mail regarding that we should honor that.
Yes, probably also makes sense if currently the de-facto default is getting an email anyway. |
|
@jancborchardt Those are the two mails:
Thinking more about it I'm not entirely sure we should couple those settings. |
I agree. But we could make the sharing app a per-user setting. That would work nicely and we can store that in oc_preferences. |
@jancborchardt - What do you say? Would that be the way to go? |
@miaulalala @max-nextcloud yeah, that actually makes a lot of sense, that should be personal preference. :) |
Bug description
Similar to what was described in this ancient issue: #11216
A friend shared a folder, and I received an email.
My settings under
settings/user/activity
for "A file or folder has been shared" are disabled for email (and push). Hence I shouldn't have received an email. – With a link to accept the share, although I've (undersettings/user/sharing
) "Allow shares by default" enabled. The share got accepted automatically (or at least, it appeared in my folders without me using the accept link from the mail).Oh, and late on my friend added a note to the share, which caused a second mail; which is unwanted as well.
Steps to reproduce
Expected behavior
No EMail, if the user (receiving a share) doesn't want EMails about this. This can get quite spammy if you receive a lot of shares.
Installation method
Official Docker image
Operating system
Other
PHP engine version
PHP 8.1
Web server
Other
Database engine version
MariaDB
Is this bug present after an update or on a fresh install?
Fresh Nextcloud Server install
Are you using the Nextcloud Server Encryption module?
No response
What user-backends are you using?
Configuration report
No response
List of activated Apps
Don't have access to that right now.
Nextcloud Signing status
Nextcloud Logs
No response
Additional info
Sharing via email was just recently enabled on our instance. Hence I do not know if this bug is new. But seeing the old issue with a relatively new comment about it, makes me confident, that this isn't new.
The text was updated successfully, but these errors were encountered: