Sharing public folders with Z-Push
-
@mcostan said in Sharing public folders with Z-Push:
I waited for a bit and forced it to sync again, but I can’t see any public folders.
That is than probably a topic for the WebApp subforum.
@mcostan said in Sharing public folders with Z-Push:
Is there any way to do this?
What the plugin uses under the hood is a webservice provided by z-push. The webservice is explained at https://wiki.z-hub.io/display/ZP/Webservice and the page also includes an example script.
And then there is starting with 2.4.0 also the possibility to manage shared folders from z-push-admin.
@mcostan said in Sharing public folders with Z-Push:
Should I go and do this instead?
http://wiki.zarafa.com/index.php/Z-Push_shared_and_public_folder_syncThis would achieve something similar. The benefit of using the new approach is that you have control over which mobile devices show which folders, whereas with the static configuration these folders will show up for everyone connecting to this z-push instance.
@mcostan said in Sharing public folders with Z-Push:
If I add in the config.php file MyPersonalPublicFolder will it make everything else visible too?
No, neither of the above ways will add a hierarchy of folders, but only folders one by one.
-
Hi Felix, thanks for your prompt reply.
Is it right to say that if I share a sub public folder this should appear on the mobile device? (I ticked them individually from the MDM plugin).
The question why I am asking is that I do not see them appearing in the mobile device with the standard mail program nor with “Nine” which is another mail program (Android device).
I have tried both sharing it with the MDM plugin as well as the php config file. The result of both is that they appear in the MDM plugin as shared, but do not appear in the mobile device…
-
Another way to check if a folder is properly shared is by getting the user details of a user with
z-push-admin -a list -u username
. If a folder is properly shared (and if missing permissions don’t interfere) the you should see something like the following:Additional Folders: 1 Folder name Store Type Origin Synched Inbox - feedback feedback Email Shared Active
-
Thanks, I’ll try tonight and let you know, much appreciated.
-
This is what happens:
DeviceId: 4e696e65434335424635444441343039 Device type: Android UserAgent: Nine-nikel/MRA58K Device Model: Redmi Note 4 Device IMEI: 000000000000000 Device friendly name: nikel Device OS: Android 6.0.V8.0.4.0.MBFMIDG Device OS Language: English (United Kingdom) Device Operator: Vectone ActiveSync version: 14.1 First sync: 2018-07-18 22:48 Last sync: 2018-07-19 21:00 Sync Period: unlimited (0) Total folders: 257 Short folder Ids: Yes Synchronized folders: 14 Synchronized data: Emails(14) Additional Folders: 18 Folder name Store Type Origin Synched CaterAllen - Email Shared Inactive (not yet synchronized or no permissions)
All the shared folders have the same message (not yet synchronized or no permissions) for both devices. I have permissioned both the standard android mail client as well as Nine which is the one in the example above.
Note that I have given to myself full control on the folders in my own Inbox.
Am I doing anything wrong anywhere?
-
Hi mcostan,
did you check z-push.log if the device attempts to synchronise that folder? Is there a way on your mobile device to force a folder sync?
Manfred
-
Apologies I should have sent you the log files to start with.
For normal folders I see stuff like this:
19/07/2018 23:08:05 [ 4700] [DEBUG] [#unknown] HierarchyCache: AddFolder() serverid: Ub4498 displayname: FollowUp 19/07/2018 23:08:05 [ 4700] [DEBUG] [#unknown] ASDevice->GetFolderIdForBackendId(): generated new folderid 'Ufae70' for backend-folderid '9995a8356ba047cd800edeb80b480023106308000000'
For the public ones I see this:
19/07/2018 23:08:04 [ 4700] [DEBUG] [#unknown] ChangesMemoryWrapper->Config(AdditionalFolders) : process folder 'CaterAllen - ' 19/07/2018 23:08:04 [ 4700] [WARN] [#unknown] KopanoBackend->openMessageStore(''): No store found for this user
And nothing else… What does “No store found for this user”?
I created the folders myself under Public Folders… -
Some more findings.
I added a standard folder and I can see the following:
19/07/2018 23:36:46 [10172] [DEBUG] [#unknown] HierarchyCache: AddFolder() serverid: U15797 displayname: abla2
This appears soon in the mobile device.
I then went and removed all permissions to the topmost public folder (It had my name specifically added in the permissions and I now see:
9/07/2018 23:33:01 [ 8251] [DEBUG] [#unknown] ZPushAdmin::AdditionalFolderAdd(): added folder '36BlandfordRoad - ' to additional folders list of device '4e696e65434335424635444441343039' of user 'mrc' with status: true
Except the folder never makes it to the mobile device…
The device ID is indeed the one of the Nine mail program in the MDM list.
-
I am out of ideas… The only thing that comes to my mind is whether I should try in Outlook 2016 and see if it makes it there, by enabling the same folders in the MDM plugin?
-
Hi @mcostan,
did you try to add a public folder with z-push-admin? You have to specify SYSTEM as a store for a public folder.
Running z-push-admin with -s flag provides more information on shared folders, e.g.
z-push-admin -a list -u mrc -s
Manfred
-
I tried adding it with z-push with the following:
z-push-admin -a addshared -u mrc -n 36BlandfordRoad -o SYSTEM -t email -f 9995a8356ba047cd800edeb80b4800238d4a00000000
root@mrc-ubz64:~# z-push-admin -a list -u mrc Synchronized devices of user: mrc ----------------------------------------------------- DeviceId: androidc700440035 Device type: Android UserAgent: Android/6.0-EAS-1.3 Device Model: Redmi Note 4 Device IMEI: 863263032211641 Device friendly name: Redmi Note 4 Device OS: Android 6.0 Device Operator: Vectone (23430) ActiveSync version: 14.1 First sync: 2018-07-28 19:07 Last sync: 2018-07-28 19:07 Sync Period: unlimited (0) Total folders: 256 Short folder Ids: Yes Synchronized folders: 1 Synchronized data: Emails Additional Folders: 1 Folder name Store Type Origin Synched 36BlandfordRoad SYSTEM Email Shared Inactive (not yet synchronized or no permissions) Status: OK WipeRequest on: not set WipeRequest by: not set Wiped on: not set Policy name: default Attention needed: No errors known
The same behaviour is for both the standard Android client as well as the Nine email program on Android.
Any help much appreciated. Right now the only way I have to access public folders is via k9mail and IMAP but it is terribly slow…
-
Hi @mcostan,
in your last z-push-admin output you forgot the “-s” flag. See my previous post.
According to this last output you have 256 folders, but only 1 is synced. Is this correct and intended?Providing just bits of information is not very helpful for me to debug. Post complete z-push.log after you add a shared folder and device syncs.
Manfred
-
So I got somewhere with this.
When I add them with the comamnd line, the folders do appear in Nine after a while which I am very very happy about.
the output of the z-push-admin -a list -u mrc -s is below for an example:
Folder name: Insurance Store: SYSTEM Type: Email Origin: Shared Folder id: 9995a8356ba047cd800edeb80b480023f14a00000000 Parent id: 0 Synched: Active
However, when I add them via the MDM plugin they do not seem to appear, although it may just be that I have now added a lot of folders at once and I just need to let it syncronize.
I noticed that for the ones added via the MDM plugin it comes up with the store empty like this:
Folder name: Bills - Store: Type: Email Origin: Shared Folder id: 9995a8356ba047cd800edeb80b480023384b00000000 Parent id: 0 Synched: Inactive (not yet synchronized or no permissions)
Whether that would make any difference or not I have no idea.
In any case I am very very happy with the current state as it is progress for me.
Apologies for taking your time on this.
-
Hi mcostan,
@mcostan said in Sharing public folders with Z-Push:
However, when I add them via the MDM plugin they do not seem to appear, although it may just be that I have now added a lot of folders at once and I just need to let it syncronize.
I noticed that for the ones added via the MDM plugin it comes up with the store empty like this:
Folder name: Bills - Store: Type: Email Origin: Shared Folder id: 9995a8356ba047cd800edeb80b480023384b00000000 Parent id: 0 Synched: Inactive (not yet synchronized or no permissions)
Whether that would make any difference or not I have no idea.
That doesn’t look right. It might be that a store goes missing somewhere or there is a bug. Without a store Z-Push won’t be able to open the folder.
I suggest you open a new thread at https://forum.kopano.io/category/21/plugins-for-kopano-webapp with the link to this thread.Manfred
-
Will do. I am glad we were able to get to a diagnosis of the problem. Very much appreciated.