• Members 148 posts
    May 23, 2023, 6:40 p.m.

    Would it be possible for the default notify option be to 'notify on site', not to 'notify on site and by email'?

    I've upgraded my site to 0.35 and I'm getting a storm of complaints from my users about constant notifications....and my email server is taking an unnecessary hammering.

    Because of the way my email server works I'm limited to 300 outbound emails per hour per email address....and I can't have more than one email address to send notifications in misago.....so I'm getting an ever increasing queue in the outbox.

    Ideally I'd like a way to default reset these to remove email sends.....with only users who specifically subsequently enable it to receive emails.

    Even better would be a method to disable email notifications, except for perhaps a digest - but certainly admin level permissions to disable email permissions for certain activities.

  • May 23, 2023, 6:44 p.m.

    You can change default preferences in „Notifications” settings in admin panel. Your users can change theirs in „Forum options” They can also unwatch threads en masse on „watched threads” list (by clicking in „all threads” button next to category button on threads list).

    Option to disable emails with notifications is not something I’ve imagined, but I understand your predicament and will put it on roadmap.

  • Members 148 posts
    May 23, 2023, 6:57 p.m.

    Thank you.

    A big problem is that installing the new version has automatically enabled 'notify by site and email' for all cases, for all existing users. I expect to have not many new users, but I have a the majority of existing users suddenly with the default setting.

    I could do with a, even one off, way of turning it all off for existing users who have inadvertently inherited this default setting.

  • May 23, 2023, 7:01 p.m.

    On your server, inside Misago docker container (can be separate one spun just for this action) run python manage.py shell.

    Then in the shell run:

    from misago.notifications.models import WatchedThread
    

    And next:

    WatchedThread.objects.filter(send_emails=True).update(send_emails=False)
    

    This will turn off email notifications for watched threads.

    To change default preferences for users:

    from misago.users.models import User
    
    User.objects.update(watch_started_threads=1, watch_replied_threads=1, watch_new_private_threads_by_followed=1, watch_new_private_threads_by_other_users=1, notify_new_private_threads_by_followed=1, notify_new_private_threads_by_other_users=1)
    

    This will disable email notifications preference for users.

    Close shell with ctrl + d or cmd + d (on mac). If you've created new Docker container for this, you can now delete it.

  • Members 148 posts
    May 23, 2023, 7:17 p.m.

    Thank you for this.

    ...will this revert to previous behaviour on a container restart?

  • May 23, 2023, 7:19 p.m.

    Those shell commands update user profiles and watched threads preferences in database. So restarting containers will not revert those changes.

  • Members 148 posts
    May 23, 2023, 7:23 p.m.

    Brilliant. Thank you very much. I've applied those changes, so it will hopefully overcome the immediate problem.

    Ultimately I could do with either an admin function to disable email notification...or maybe a permissions option to allow them for specific users or groups of users.

    (not a demand...a feedback. I very much appreciate your quick response to this).

  • May 23, 2023, 7:25 p.m.

    I am thinking there will be an option to turn off notification emails in Notifications performance section. Here's roadmap item for this.

    I just don't know when this will happen.

  • Members 148 posts
    May 23, 2023, 7:30 p.m.

    Excellent. You can only do what you can do, but that would work for me.