-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
RFC 2822, 3.6.2 Error #8387
Comments
Nobody? |
Could you please fill out the template? These information are requested for a good reason. So for sharing you entered as an email address to share a file/ folder? |
I changed the following lines to fix the email sending issue. I've added File: lib/private/Mail/Mailer.php File: lib/private/Mail/Message.php |
@denunv I don't know how you did that, but thanks, that fixed all my issues on a vps. Man I was getting fustrated. lol |
You can also fix the error by uploading these two files from previous OwnCloud version 9.1.7. lib/private/Mail/Mailer.php |
@peter-parker I assume next cloud and own cloud are similar or based off each other? |
@LukasReschke @nickvergessen Please review my PR #9095 based on the change suggested by @denunv above. |
…_UTS46 is undefined. Fixes nextcloud#8387. Signed-off-by: Jared Boone <jared.boone@gmail.com>
if i understand this correct, #9095 should fix this for NC13 (released via 13.0.2) and #9100 in master (for NC14+)... --> quick info about my setup: i haven't setup a mail-server for notifications, and use the IMAP-backend for user-management. - activity-notifications still work as ever. |
@DJCrashdummy It would be helpful if you could give some more details. When does the error occur?What message appears in your log (including the destination email address)? |
@JaredBoone thanks for your reply! this issue still occur as mentioned by the OP when sharing a folder with an other user.
where for the record: at both users personal page a valid email-address is entered. and also the activity-mails work for for all users as ever! PS: with the theme active it gets even worse if you try to share by mail; you only get the message/info "Failed to send share by mail." instead and nothing gets shared. |
@DJCrashdummy I suspect the error is caused by the "From:" field, not the "To:" field. On my server, that "From:" field is populated with "noreply@[my.company].com". Here are some questions that might help debug this: Have you tested the mailer configuration (Admin->Additional Settings->Test email settings)? Does your config.php file have a reasonable value (with no spaces) in the 'mail_from_address' field (eg 'noreply')? Do you have Nextcloud configured to send mail using php, smtp, or sendmail ('mail_smtpmode' in config.php)? What surrounding log statements do you see if you enable debug level logging ('loglevel' => 0 in config.php) and enable the mail_smtpdebug parameter in config.php? Since you mention that it seems to be related to the theme, are you using the official Nextcloud Theming App or a custom theme ('theme' in config.php)? Also, you may want to read the Troubleshooting section here: https://docs.nextcloud.com/server/13/admin_manual/configuration_server/email_configuration.html Hope this helps. |
@JaredBoone thanks for responding and hopefully getting this little nasty bug!
yes, i'm using a theme via
i'm pretty sure about this, since all users still get mails from the nextcloud-server (e.g. activity-messages still work as ever in every setting), just the sharing makes problems.
well... the addresser from my server without a theme look like
interesting... again without a theme everything works as it should and the addresser is
no, i just use php for mails... so there aren't any mail-setting in the config.php.
unfortunately i guess nothing really useful... in case everything works i get 3 entries in the log:
and with the error while sharing, just 2 of them are missing, but nothing else shows up:
i tested some additional things and i'm pretty sure it has to do with the
|
@DJCrashdummy I agree that you seem to have found a bug - I don't think the mailer should be using the "short name" field from a Theme as part of the email address at all and if it does then it should do something about whitespace. However I don't feel comfortable attempting to fix this myself. Since this GitHub Issue has already been closed against a Pull Request, I think you'll need to create a new Github Issue. I recommend filling out all of the details in the template, summarizing the information from our thread, pasting a link to this issue, and also providing steps to reproduce, for example:
|
Steps to reproduce
Expected behaviour
Success when sharing the file
Actual behaviour
Error message even though it's been successfully shared so it creates confusion
Server configuration
Operating system:
Web server:
Database:
PHP version:
Nextcloud version: (see Nextcloud admin page) 13.0.0
)
Updated from an older Nextcloud/ownCloud or fresh install: Updated
Where did you install Nextcloud from: Web
Signing status:
Signing status
No errors have been found.
List of activated apps:
App list
Nextcloud configuration:
Config report
Are you using external storage, if yes which one: local/smb/sftp/...
Are you using encryption: yes/no
Are you using an external user-backend, if yes which one: LDAP/ActiveDirectory/Webdav/...
LDAP configuration (delete this part if not used)
LDAP config
Client configuration
Browser:
Operating system:
Logs
Web server error log
Web server error log
Nextcloud log (data/nextcloud.log)
Nextcloud log
Browser log
Browser log
The text was updated successfully, but these errors were encountered: