[Koha-bugs] [Bug 36314] koha-email-disable does not disable all emails

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Thu Mar 14 09:15:24 CET 2024


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=36314

Magnus Enger <magnus at libriotech.no> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |magnus at libriotech.no

--- Comment #1 from Magnus Enger <magnus at libriotech.no> ---
I can't claim to have a full overview of this, but here are some points that
come to mind: 

koha-list has the --email and --noemail switches, to only list instances that
have email enabled and disabled respectively. 

koha-foreach also has the --email and --noemail switches, which build on the
functionality in koha-list. 

Some standard cronjobs that are set up when Koha is installed with the Debian
packages use koha-foreach --email, including this: 

*/15 * * * * root koha-foreach --chdir --enabled --email
/usr/share/koha/bin/cronjobs/process_message_queue.pl

So most messages should be stopped when email is disabled. Including SMS and
print (which could come as a surprise, based on the name of the
koha-email-{enable,disable} scripts). 

But there are some functions in Koha that sends email immediately, without
relying on process_message_queue.pl. These include, but are not necessarily
limited to: 

- Password reset
- Welcome email to newly registered patrons (not sure if that only includes
self registered patrons in the OPAC?)

Not sure if these respect the email.enabled file.

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are watching all bug changes.


More information about the Koha-bugs mailing list