Login  Register

Instant Emails & Digests sent only to members who can post

Posted by Coleen_Astalos on Oct 17, 2013; 4:40pm
URL: https://support.nabble.com/Instant-Emails-Digests-sent-only-to-members-who-can-post-tp7587368.html

I would like to limit subscription emails to be sent only to those who are "Members" (ie. those that can post in my situation).

It looks like I can do this by changing the following two macros:
digest_email & should_get_instant_email to change the "can_view" to "can_post_under".  

So changing this in "digest email": <n.filter_by.local_subscription.user.can_view.current_node/>
to this: <n.filter_by.local_subscription.user.can_post_under.current_node/>

And changing this in should_get_instant_email: <n.local_user.can_view.page_node /> 
to this: <n.local_user.can_post_under.page_node /> 

Does that look right?  Will it mess anything else up?

Doing this solves my problem of having to find subscriptions for people who are no longer "Members"  and remove the subscription.  The subscription can stay out there it just won't generate an email or digest to them.  Then if they join again later (and get put back into the Members category) they'll start to get their subscriptions again.

Thanks,
Coleen