I want to notify users immediately when a node they’ve subscribed to is commented on, but then not send them any more notifications (from any other node either) until they’ve visited the site. This is because I want users to immediately know when a discussion has a reply, but not have their inbox filled up with unnecessary emails. As far as I know no module can do this.
Im more of a themer than developer but it occurred to me that maybe this could be done with the Rules module. It would work this this:
1) When a node is commented on, send an email to the user if the user doesn't have role of ‘no’, and then add a role of ‘no’ to user.
2) When the user logs in, wait until they log out or are timed out, and then remove the role of ‘no’.
My reason for waiting until the user logs out before removing the role is I don't want them to get emails of comments while they are on the site. These may be emails from a discussion they are replying to several times while still logged in.
One issue could be if a user closes down their browser or leaves it open without refreshing it, but doesn't log out. Then Rules won't send them an email until they are timed out but they won't be aware or any comments made before this. Is there a solution to this?
Does anyone know how other forum software deal with this situation of wanting to have immediate notifications but not send loads of pointless emails to users?