asked 2012-08-31 07:18:25 -0500bgenevaux
One of my user continue to receive notifications email even if he chose to not receive any emails.
Does it ever happened for you ?
If it has, how did you fix it ?
answered 2012-09-03 06:34:12 -0500bgenevaux
I found what was wrong :
get_global_instant_notification_subscribers, you used the
q_all feed type with
i frequency filter only for
exclude ignored tags and for
only interesting tags, but NOT for
show all tags tag filter.
Just have to change the part :
#segment of users who have tag filter turned off global_subscribers = User.objects.filter( email_tag_filter_strategy = const.INCLUDE_ALL ) subscriber_set.update(global_subscribers)
#segment of users who have tag filter turned off global_subscribers = User.objects.filter( email_tag_filter_strategy = const.INCLUDE_ALL ) if global_subscribers: instant_subscribers = EmailFeedSetting.objects.filter_subscribers( potential_subscribers = global_subscribers, feed_type = 'q_all', frequency = 'i' ) subscriber_set.update(instant_subscribers)
and it works well.
Create your Q&A site at askbot.com. Managed Askbot hosting at just $15/mo. Dedicated hosting, support contracts, consulting services.create your Q&A site
Asked: 2012-08-31 07:18:25 -0500
Seen: 80 times
Last updated: Sep 03 '12