currently the system tries sending emails to all users that have 'thread_notify' enabled, including the default example emails that the Administrator and Guest accounts have. this patch disables email notifications for these accounts, and additionally tries to disable it for any other user accounts with example emails Signed-off-by: Chinmay D. Pai <chinmaydpai@gmail.com>
8 lines
208 B
Python
8 lines
208 B
Python
import frappe
|
|
|
|
|
|
def execute():
|
|
# remove all example.com email user accounts from notifications
|
|
frappe.db.sql("""UPDATE `tabUser`
|
|
SET thread_notify=0, send_me_a_copy=0
|
|
WHERE email like '%@example.com'""")
|