First time here? Check out the FAQ!
3

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

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 ?

To enter a block of code:

  • enter empty line after your previous text
  • paste or type the code
  • select the code and press the button above
Preview: (hide)
bgenevaux's avatar
201
bgenevaux
asked 12 years ago
todofixthis's avatar
1.3k
todofixthis
updated 12 years ago

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's avatar Evgeny (12 years ago)

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's avatar bgenevaux (12 years ago)

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's avatar Evgeny (12 years ago)

I'll check this out, thanks !

bgenevaux's avatar bgenevaux (12 years ago)
see more comments

2 Answers

2

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.

To enter a block of code:

  • enter empty line after your previous text
  • paste or type the code
  • select the code and press the button above
Preview: (hide)
bgenevaux's avatar
201
bgenevaux
answered 12 years ago
link

Comments

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

bgenevaux's avatar bgenevaux (12 years ago)
see more comments
0

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

To enter a block of code:

  • enter empty line after your previous text
  • paste or type the code
  • select the code and press the button above
Preview: (hide)
pajju's avatar
565
pajju
answered 12 years ago
link

Comments

1

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

bgenevaux's avatar bgenevaux (12 years ago)
see more comments