View Issue Details

IDProjectCategoryView StatusLast Update
0005989SOGoWeb Preferencespublic2024-12-11 09:59
Reporterhref Assigned To 
PrioritynormalSeverityminorReproducibilityhave not tried
Status newResolutionopen 
PlatformLinuxOSDebianOS VersionBookworm
Product Version5.10.0 
Summary0005989: SOGoMailFetchAllUnseenCountFolders set in /etc/sogo/sogo.conf is ignored
Description

We change some defaults in our SOGo installation, which works fine for the settings we tried, except for SOGoMailFetchAllUnseenCountFolders.

Example from our /etc/sogo/sogo.conf, which works:
SOGoMailComposeMessageType = text;

This however does not (nor does setting it to 1, or "1"):
SOGoMailFetchAllUnseenCountFolders = YES;

Once the user checks the preference manually, or by using sogo-tool, the setting comes into effect.

Without that, the setting neither works (so the counts remain hidden), nor is it shown as activated.

Steps To Reproduce
  • Store "SOGoMailFetchAllUnseenCountFolders = YES;" in sogo.conf
  • Restart SOGo.
  • Add a new user.
  • Login as that user and check the preferences.
  • Look at unread e-mail count (need to send some e-mails to the user, that land in a different folder than the INBOX).
TagsNo tags attached.

Activities

Christian Mack

Christian Mack

2024-12-10 15:33

developer   ~0018009

what do you get with

/usr/sbin/sogo-tool user-preferences get defaults USERNAME SOGoMailFetchAllUnseenCountFolders
href

href

2024-12-11 07:19

reporter   ~0018010

[code]
/usr/sbin/sogo-tool user-preferences get defaults USERNAME SOGoMailFetchAllUnseenCountFolders
<0x0x5580d9e758a0[SOGoCache]> Cache cleanup interval set every 300.000000 seconds
<0x0x5580d9e758a0[SOGoCache]> Using host(s) '127.0.0.1' as server(s)
2024-12-11 08:18:42.919 sogo-tool[359817:359817] Value for key "SOGoMailFetchAllUnseenCountFolders" not found in defaults
[/code]

Christian Mack

Christian Mack

2024-12-11 08:47

developer   ~0018011

Could you try in /etc/sogo/sogo.conf with:

    SOGoMailFetchAllUnseenCountFolders = 1;
href

href

2024-12-11 08:49

reporter   ~0018012

Same result:

user-preferences get defaults USERNAME SOGoMailFetchAllUnseenCountFolders
&lt;0x0x55ff04501750[SOGoCache]> Cache cleanup interval set every 300.000000 seconds
&lt;0x0x55ff04501750[SOGoCache]> Using host(s) '127.0.0.1' as server(s)
2024-12-11 09:49:09.030 sogo-tool[866394:866394] Value for key &quot;SOGoMailFetchAllUnseenCountFolders&quot; not found in defaults
Christian Mack

Christian Mack

2024-12-11 09:05

developer   ~0018013

Strange.
Did you use a valid USERNAME in that command after creating that account?

href

href

2024-12-11 09:13

reporter   ~0018014

Nope, I really just ran the commands as-is :)

With a valid user-name, I get SOGoMailFetchAllUnseenCountFolders: 1 in both cases, but we have set this via sogo-tool user-preferences set defaults &lt;user> SOGoMailFetchAllUnseenCountFolders 1, so at this point I would expect this to work either way. We had to add this workaround so we could get these settings provisioned for new users (we apply this as part of our user rollout).

Christian Mack

Christian Mack

2024-12-11 09:23

developer   ~0018015

Could you remove a test user from SOGo and login with that test user?
That should give that account all default values from sogo.conf.
I would be interested, if SOGo sets SOGoMailFetchAllUnseenCountFolders at all, and if what value it has.

href

href

2024-12-11 09:59

reporter   ~0018016

Sure, I tried it with a test user. This is the default value without entry in the sogo config file:

sogo-tool user-preferences get defaults test SOGoMailFetchAllUnseenCountFolders
2024-12-11 10:54:02.015 sogo-tool[913821:913821] Value for key &quot;SOGoMailFetchAllUnseenCountFolders&quot; not found in defaults

I then set the config file as follows:

SOGoMailFetchAllUnseenCountFolders = 1;

And get the following value for the test user:

sogo-tool user-preferences get defaults test SOGoMailFetchAllUnseenCountFolders
SOGoMailFetchAllUnseenCountFolders: &quot;1&quot;

Note how this is a string, and not a number, like with the users where this works due to our workaround.

Issue History

Date Modified Username Field Change
2024-07-16 11:05 href New Issue
2024-12-10 15:33 Christian Mack Note Added: 0018009
2024-12-11 07:19 href Note Added: 0018010
2024-12-11 08:47 Christian Mack Note Added: 0018011
2024-12-11 08:49 href Note Added: 0018012
2024-12-11 09:05 Christian Mack Note Added: 0018013
2024-12-11 09:13 href Note Added: 0018014
2024-12-11 09:23 Christian Mack Note Added: 0018015
2024-12-11 09:59 href Note Added: 0018016