OJS 3.3 bulk email (notify by roles) - wrong user count?

In OJS 3.3.0-22, I use the bulk email option to notify users by roles (...management/settings/access#notify). When I select all roles, compose an email and press Save, the message says

You are about to send an email to 2770 users. Are you sure you want to send this email?

However, I only have 1744 users in the database (select count(*) from users;) and the same number of users is correctly shown under Users and Roles tab in the management dashboard. The actual emails got sent to 1738 users (I checked it with mailpit).

The questions are:

  1. Why is the number of users in the alert message (2770) incorrect? Can this be a bug? Are some of the users counted twice?
  2. Am I right to assume that a few users didn’t get an email because of specific notification settings in they profiles?

Hi @voffch!

  1. That’s definitely a bug, I just watched the code and it doesn’t make sense. I filed a bug report here: [Bulk Emails] | Invalid count at bulk email notification UI · Issue #12548 · pkp/pkp-lib · GitHub
  2. Yes, it’s possible that a couple of users disabled the notifications.

I’ll close this topic, you can subscribe to notifications on the GitHub issue if it’s important for you :slight_smile:

Best,
Jonas Raoni

1 Like