Not overloading users with email

Imagine one has content rules (or similar) which sends users email too often:

Is it possible from Plone to for example

  1. 'ask' the mailhost to send them at a certain time of day (so the users gets 5 mail in the morning instead of 1 every few hours

or

  1. Somehow 'notify User' when he/she logs in and showing the info which now is sent in email ?

I assume #2 would be quite difficult, but it would be very nice if the 'Notify User' had an option for 'which user' and more or less the same options that are available for 'mail'. Even better if it (they) showed on the dashboard.

An option could be to send the email to a mailing list with a daily digest instead of immediate delivery. Another option is:

to create a minimal content in a folder and list it at login.

Contentrules has a notify action but it is immediate.

1 Like

We would be interested in a plugin that batches notifications from content rules, esp on a schedule the user can control.
Are others using a third party service for this now instead of a plugin?

I am 'giving this a try'.

For selecting 'which users to notify', I assume I could use vocabulary ' plone.app.vocabularies.Principals

But: What would be a good way to check if 'current user is selected'?
Should I make an indexer that stores 'each user' or is there any other way to do this?

What is the context of your question? Who is selecting which user? If you want to notify a user when they log in, you would want to hook into the login events, then you would use the current user.

To not overload the users with email, I have made a content type (Notifications) that 'looks like normal Notifications.
Then I add a content rule and notifications are added 'when something happens'. (instead of (for example) sending a mail 'something happened on the site', this info is now presented 'when user logs in again'.

My approach (now) is to store an index of users and get all 'Notifications' that are 'to user xxx' . In other words: if the field contains groups, I index them as 'users'.
Will try to publish something tomorrow to explain better.

If it should be of interest, I am trying to make something here ( Classic Plone for now), any feedback is welcome: