Imagine one has content rules (or similar) which sends users email too often:
Is it possible from Plone to for example
'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
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.
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?
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.