Rider:
They're the same in all folders and files throughout the entire website.
Hmm... I'm not sure how it's possible, but they should not be the same for entire website :) i.e. something in
shared_files/pmail should be allowed to write and execute only for the web-server ownership, not the other users. However your server could have some specific configuration, I couldn't be sure on it.
Rider:
Does the latest PM-version run on MiniBB 3.1?
I couldn't be sure on it. From the updates history I see that the updates I've made, were also partially containing updated functions which strictly relate to newer miniBB versions and the Premoderation add-on. There are no changes made since 2.4.5 which would affect the files updates routine. So I doubt this update would help. I'm 99% sure the problem is somewhere else.
Actually,
writeFile_settings function of
addon_pmail_funcfl.php is the one which updates the
settings.php file for each user, and then the data is taken from it to display in the header part and other places. It's met in
addon_pmail.php,
bb_plugins2.php code and
addon_pmail_mass.php. Most likely some hiss happens in
addon_pmail.php, when it calls that function. Or even
addon_pmail_send.php (which first calls
calculateMessages for each user - but then it calls
writeFile_settings anyway).
So from your description, it seems like
settings.php is not updated when a new message is being sent, and not when it's being read. But it's updated when some message is deleted. Not sure why it happens so... so far no clues.
Also, one step which I don't have on miniBB demo, is updating the "Email notifications" box - do you have it on your forum?