Ask Your Question
3

User opted out of email notifications, but is still receiving them.

asked 2012-08-31 07:18:25 -0500

bgenevaux gravatar image bgenevaux flag of France
189 1 6 13

updated 2012-08-31 11:31:38 -0500

todofixthis gravatar image todofixthis flag of Chile
1082 16 18 37
http://www.fiveyearsabroa...

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 ?

delete close flag offensive retag edit

Comments

We have reports like this one. We'll be adding logging for emails sent in the debug mode to fish this out. Could that user send his/her level of subscription frequency? Is he/she an admin/moderator? Thanks.

Evgeny ( 2012-08-31 08:48:54 -0500 )edit

He isn't admin nor moderator. Apparently he once was notified instantly, and since he set all notifications on "no emails", he apparently still receives notifications as when it was instantly.

bgenevaux ( 2012-08-31 08:51:34 -0500 )edit

He might have another account where the subscription is still on. I have never seen a case where all subscriptions are off and the user still gets the alerts.

Evgeny ( 2012-08-31 09:42:20 -0500 )edit

I'll check this out, thanks !

bgenevaux ( 2012-08-31 09:47:35 -0500 )edit

2 Answers

Sort by ยป oldest newest most voted
2

answered 2012-09-03 06:34:12 -0500

bgenevaux gravatar image bgenevaux flag of France
189 1 6 13

I found what was wrong : In models/posts.py, in 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)

to :

    #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.

link publish delete flag offensive edit

Comments

Btw, on the tag filter, how do a user choose which tags are used for the filter ?

bgenevaux ( 2012-09-03 06:36:07 -0500 )edit
0

answered 2012-09-02 14:32:02 -0500

pajju gravatar image pajju flag of India
493 7 8 21
http://ninjaas.com/

As askbot has multiple sign-in options, he might have used another account.

link publish delete flag offensive edit

Comments

1

No, can't happen, I disabled alternative logins providers, my users can only sign in through ldap.

bgenevaux ( 2012-09-03 02:42:20 -0500 )edit

Your answer

Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Reliable Askbot Hosting

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
30 days free trial

Question tools

Follow

subscribe to rss feed

Stats

Asked: 2012-08-31 07:18:25 -0500

Seen: 80 times

Last updated: Sep 03 '12