mirror of
https://github.com/SuiteCRM/SuiteCRM.git
synced 2026-03-02 19:16:58 -05:00
Emails imported automatically won't allow to change the user assigned to #3368
Labels
No labels
Area: API
Area: Campaigns
Area: Cases
Area: Clean Up
Area: Clean Up: Performance
Area: Dashlets
Area: Databases
Area: Developer Tools
Area: Elasticsearch
Area: Elasticsearch
Area: Emails
Area: Emails:Campaigns
Area: Emails:Cases
Area: Emails:Compose
Area: Emails:Config
Area: Emails:Templates
Area: Environment
Area: Installation
Area: Language
Area: Mobile
Area: Module
Area: PDFs
Area: PHP8
Area: Reports
Area: Studio
Area: Styling
Area: Upgrading
Area: Workflow
Area:Activity Stream
Area:Calls
Area:Import
Area:Projects
Area:Search
Area:Surveys
Area:Themes
Area:Users
Branch:Hotfix
Good First Issue
Hacktoberfest
Help Wanted
PR:Community Contribution
PR:Type:Enhancement
Priority:Critical
Priority:Important
Priority:Moderate
Severity: Major
Severity: Minor
Severity: Moderate
Status: Requires Code Review
Status: Requires Updates
Status: Stale
Status: Team Investigating
Status:Assessed
Status:Fix Proposed
Status:Needs Assessed
Status:Requires Automated Tests
Type: Bug
Type:Deprecated
Type:Discussion
Type:Duplicate
Type:Invalid
Type:Question
Type:Suggestion
Type:Suggestion
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/SuiteCRM-SuiteCRM#3368
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @labcerouno on GitHub (Oct 22, 2018).
Originally assigned to: @code-ph0y on GitHub.
In Group Email Account, if "Import emails automatically" is activated, it won't be possible to change the user which is assigned to or the contact which is related to.
Issue
For Group Email Accounts we can activate "Import emails automatically". The default behavior is:
If I want to change the user which the message is assigned to, or the contact which it is related to, I should open the message and click Actions -> Edit.
For the messages automatically imported, the option "Edit" won't appear. Instead, it will show "Import", as if the message was not already imported. If I try to import and click "OK", it will take me to a blank page.
Related question: In our use case, we would like to activate the option "Import emails automatically" only to relate the messages automatically with the sender's contact. The automatic assign to admin user is useless for us. In previous versions, the emails would relate to the sender's contact without the need to activate "Import automatically". Since v7.10.9, the message needs to be imported in order to relate to the contact. Would it be another bug? Or it's the default behavior?
Expected Behavior
The messages imported automatically should show the option "Edit" in Actions menu, instead of "Import".
Actual Behavior
Actions menus show "Import" as if the message was not already imported. When importing, it shows a blank page and it will not change the user assigned to or the contact related to.
Possible Fix
Unknown
Steps to Reproduce
Some logs
Your Environment
@labcerouno commented on GitHub (Nov 2, 2018):
This error can only be replicated if the user has set a personal inbound account up and if the admin user has set a group account up.
In our use case, many users have the same mail account, which was a perfect case for using a group email account. But we had problems when setting the group account up (subject for a new issue). So I had to make a personal account for each user, even though all users used the same account. After setting up a personal account (which has exact the same data as the group account), the Email module shows the group account inbox correctly and I'm able to send messages properly.
If I activate "Import emails automatically" in the group account config, the list view on Email module will show the messages correctly. But when clicking an automatically imported message, the detail view will show the view for non imported messages.
On
modules/Emails/EmailsController.php, line 635 I found the functionaction_DisplayDetailView, where there is a query that searches for the message from a certain mailbox in the table where imported messages are stored. In our case, it was searching for the personal mailbox, instead the group. The query result was empty and the message was treated as non imported.If I only have group account without any personal account, I can't receive or send emails. If I have only personal accounts, I can't activate
Import messages automatically. If I have both, it will not recognize the messages imported.@samus-aran commented on GitHub (Jan 4, 2019):
Hi @labcerouno We have applied a Fix Proposed to this issue. If you are able to test that would be much appreciated.
@labcerouno commented on GitHub (Feb 9, 2019):
Thank you, @samus-aran. I'll be testing this, if yet relevant.