Skip to content
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

Some users (not all which is weird) having issue with autosuggetion of senders not showing up #1807

Open
BiglifeMatt opened this issue Oct 14, 2024 · 13 comments

Comments

@BiglifeMatt
Copy link

BiglifeMatt commented Oct 14, 2024

log-2024-10-14.txt
Describe the bug
We have at least one user that when they begin to type names or addresses of users, the auto-population IMAP extension is not working. We have tried using different browsers, incognito modes, and even other systems that are working fine for other users. Seems like it only applies to this account, but there may be others. Not sure how to further troubleshoot this one.

EDIT:
As I'm collecting more, I might add, this particular user has an account name that doesn't match the username or email address. In other words the account is like j.doe12345 while the user name is j.doe and the email address is [email protected]. Not sure if that matters to what the extension uses for lookup.

To Reproduce
Steps to reproduce the behavior:

  1. Go to compose email
  2. Click on To field and start typing
  3. Nothing shows for a particular user

Expected behavior
Auto-populate options appearing for particular users.

Screenshots
If applicable, add screenshots to help explain your problem.

Please complete the following information:

  • Browser: Chrome, Firefox, Edge
  • IMAP daemon: dovecot
  • PHP version: 8.1.2
  • SnappyMail Version: 2.38.2
  • Mode: nextcloud
@phsc84
Copy link

phsc84 commented Oct 14, 2024

Probably this helps to get more information: https://github.com/the-djmaze/snappymail/wiki/FAQ#how-do-i-enable-logging

@BiglifeMatt
Copy link
Author

As I'm collecting more, I might add, this particular user has an account name that doesn't match the username or email address. In other words the account is like j.doe12345 while the user name is j.doe and the email address is [email protected]. Not sure if that matters to what the extension uses for lookup.

@BiglifeMatt
Copy link
Author

I have attached a log file above.

@the-djmaze
Copy link
Owner

Nextcloud[DEBUG]: snappymail-nc-uid mismatch '' != 'j.evans_4982'
JSON[INFO]: Action: DoSuggestions
POST[INFO]: {"Query":"jv","Action":"Suggestions"}
SQL[ERROR]: PDOException: SQLSTATE[HY000] [1698] Access denied for user 'root'@'localhost' in /nextcloud/apps/snappymail/app/snappymail/v/2.38.1/app/libraries/RainLoop/Pdo/Base.php:83

Why is your contacts database crashing?

@BiglifeMatt
Copy link
Author

BiglifeMatt commented Oct 15, 2024 via email

@the-djmaze
Copy link
Owner

Ok, that explains the Nextcloud login issue.

And the contacts DB error then?

@BiglifeMatt
Copy link
Author

I'm not seeing what you mean. Is that what the SQL error is related to? I assumed that was because of the type mismatch. It is trying to use the Nextcloud account to match the user rather than the actual uid in the LDAP database.

@BiglifeMatt
Copy link
Author

And the contacts DB error then?

There isn't an issue I am aware of with the user logging into Nextcloud. The problem is that when this user starts to type an email address in the To field that is from their Inbox, it doesn't autopopulate where our other users do not have an issue. One know difference is the fact that the users Nextcloud database ID does not match their uid. The uid is correct and matches their email server account. So I do not know what prevents their ability to lookup the sender email addresses, unless somehow it is wanting to check against their Nextcloud ID instead of uid.

@the-djmaze
Copy link
Owner

The SQL auth is failing, that's why there are no contact suggestions.

I will change the code a bit to make the log less cluttered and just bail out.

@BiglifeMatt
Copy link
Author

BiglifeMatt commented Oct 22, 2024 via email

@BiglifeMatt
Copy link
Author

The SQL auth is failing, that's why there are no contact suggestions.

I will change the code a bit to make the log less cluttered and just bail out.

To clarify, the issue is while using the Contacts Suggestions (IMAP Folder), correct? Shouldn't the authentication be universally working or not working?

@the-djmaze
Copy link
Owner

Suggestions are fetched from the contacts database.
In the ?admin you can setup which SQL/PDO database will be used for contacts.

Then you can extend this using extensions like the imap-contacts-suggestions extension or Kolab.

@BiglifeMatt
Copy link
Author

BiglifeMatt commented Oct 27, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants