Ok if anyone is following along my saga… today’s progress, had to edit function getFoldersForSettings so that it doesn’t put out duplicate group folders in the JSON for group folders array that’s used in folder selection, problem solved!
had to modify: updateSubscriptions: function () in EmailUI.js to make the select options work in folder selection. (it kept refreshing every time I clicked!) Problem solved!
had to modify settingsFolderRefresh: function in ajax.js in order to get the group folders from JSON add them to the pick list. Problem solved!
So now I’m kind of back where I started. Everything works, but the users still have access to all folders. In 7.13 there is now security group logic. So hoping with a few tweaks I can get that working! Last problem I hope to get this working in 7.13 and on ward.
Today’s update! I have Group Emails completely working.
Admin can create group accounts, admin can see all group accounts. User can only see group accounts if they are in the security group that inbound group account is in.
One last small thing to fix, is that group emails show up twice in the listing. I’m sure I can get that fixed too.
@pjdm Just spent all day testing it. I installed the changes on another installation just to be sure. There were a couple of hickups, but I’ve got it worked out. I spent a month trying to figure it all out and there are about half a dozen files that need to change. I kept decent notes of what I changed, but wanted to do a clean test just to make sure. It does work. The only catch is it needs to be 7.13.3+ where Inbound Email Accounts were added to security groups. My solution relies on this. I don’t know how it would ever work without it!
The answer to the original question is, YES I DO!!!
This was like a months worth of work to track down multiple problems throughout SuiteCRM that caused the general functionality to not work.
I’ve added all the PR’s and all the info from my notes about what is required here:
I’ve tested on two different installations and it works. I would love for someone else to give it a try and make sure there are no issues with my PR’s. I checked very carefully, but Github for me is a bit of a challenge. So hopefully I did everything mostly right.
This solution will only work in 7.13+ as 7.12 doesn’t have a relationship between security groups and inbound email accounts.
Hey @pgr, one more quick question. I’m just doing a double check on my PR’s by adding them to a fresh install of Version 8 for testing. I realized I missed one line in one PR.
Great news!!! Just tested and it works on SuiteCRM 8. However, the cache is kind of tricky. I had to put in developer mode, do the bin/cache/clear thing, and then rebuild all the JS stuff in repair and rebuild and flush my browser cache to get it to work.
I have followed through your fixes and failed to notice that I needed 7.13.3. Duh!
So I went ahead and upgraded from 7.13.0 to 7.13.3. Checked that your fixes Paul, were all still there. Did the usual Repair & Rebuild, Repair relationships, Repair Inbound Email Accounts.
Everything seems to be working except for the fact that I still don’t have a ‘Security Groups’ subpanel in the inbound emails. Inbound Email Accounts is not a module in my Studio, so I can’t check the existence of subpanels there.
I have gone as far as deleting all email accounts and making sure they have been deleted from the respective tables etc. But no joy.
Can anyone steer me in the right direction to sort this out please.
Thank you so much again for what you did with the email groups fix. I know how much time goes in to researching this stuff. I have spent hundreds of hours on SuiteCRM and still get hung up on the simplest of things sometimes.
Now all I need to do is work out why my logo image has suddenly stopped working in my emails. But that’s another topic.