Go Back   vb.org Archive > vBulletin 4 Discussion > vB4 General Discussions
  #1  
Old 01-08-2014, 10:52 AM
induslady induslady is offline
 
Join Date: Jul 2006
Posts: 224
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Notification Mail for Private Message Box is almost full - Not working

Hello,

Am using vB V4.2.1.

I understand that there is a phrase - "pmboxalmostfull" that is used to send notification mail to users when their PM box is 90% full as below -

Dear $touserinfo[username],

Your private messages box on $vboptions[bbtitle] has reached 90% of your allowed quota. To ensure that you do not reach 100% of your allowed messages, you should consider archiving or deleting some of your messages. Please visit this page to do so:
$vboptions[bburl]/private.php

All the best,
$vboptions[bbtitle]

But this notification mail is not hitting my users, is it a default feature? can you let me know which setting do I turn it on to enable this notification mail.

Please note that the other notification mail that users get when PM box is full ("pmboxfull") is hitting my user's inbox.

Thanks.
Reply With Quote
  #2  
Old 01-08-2014, 11:46 AM
kh99 kh99 is offline
 
Join Date: Aug 2009
Location: Maine
Posts: 13,185
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hmm...I'm just looking at the code so it's hard to say if I understand it all, but it looks like if a user is receiving emails about the box being full then they should also get the "almost full" emails. But one thing I don't understand is that the code seems to use the user options field in the database to record whether or not they've been sent an "almost full" warning (I guess so that they don't get multiple warnings about it), but I don't see where the bit is ever cleared, so I'm wondering if it could be a bug that no one has noticed yet. ETA: ...but I have to admit that it seems more likely that I don't understand how it works.
Reply With Quote
  #3  
Old 01-08-2014, 12:01 PM
kh99 kh99 is offline
 
Join Date: Aug 2009
Location: Maine
Posts: 13,185
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

...But I guess you could test that theory. You could execute this query:
Code:
UPDATE user SET options = options - 524288 WHERE (options & 524288)

then send a PM to test to see if the user with the problem can get an "almost full" email.
Reply With Quote
  #4  
Old 01-08-2014, 03:34 PM
induslady induslady is offline
 
Join Date: Jul 2006
Posts: 224
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hello Kh99,
Thanks for the response.
Can you let me know what this query -
Code:
UPDATE user SET options = options - 524288 WHERE (options & 524288)
does exactly?
Reply With Quote
  #5  
Old 01-08-2014, 07:27 PM
kh99 kh99 is offline
 
Join Date: Aug 2009
Location: Maine
Posts: 13,185
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

The options field in the user table is a set of bits that each mean a different thing, and one of them is called 'pmboxwarning' and has the value 524288. The PM sending code checks that bit, and if it's set, it *won't* send a warning, because it indicates that one has already been sent. The query above clears that bit for everyone, so that you can test whether that's the reason that emails aren't being sent. Clearing it for everyone shouldn't be a problem because the worst that would happen is that someone might get the email twice.

I guess it would be safer to clear it for only one user you want to test. So if you have a user whose pm box is almost full and is not getting the warning email, you could do this:
Code:
UPDATE user SET options = options - 524288 WHERE (options & 524288) AND userid = X
but replace X with the userid. Then send a PM and see the user gets a warning PM this time.
Reply With Quote
  #6  
Old 01-17-2014, 04:03 PM
induslady induslady is offline
 
Join Date: Jul 2006
Posts: 224
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hello kh99,

Thanks for the response and yes I did try your suggestion and this is what I did -

1. Took a test user - "X"
2.User X had PM box around 50% full but when I ran the update query -

UPDATE user SET options = options - 524288 WHERE (options & 524288) AND userid = X

got message that no row was affected.

3. Now user X had PM box 90% full, ran the update query and got the message that 1 row was affected.

4.User X got the "pmbox almost full" mail notification.

5.User X had PM box 100% full and user X got pm box full mail notification as well.

With the above what could be inferred? This query will clear only for the users whose inbox is 90% full and it will not affect the users who are yet to hit the 90% mark? Do I keep running this query in specific period?

What should be the actionable so that the users in my board gets both - pmboxalmostfull and pmboxfull mail notification.

Thanks in advance for the response.
Reply With Quote
  #7  
Old 01-18-2014, 03:53 PM
kh99 kh99 is offline
 
Join Date: Aug 2009
Location: Maine
Posts: 13,185
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hmm...unfortunately I'm not sure we know anything from that. The question is, if you had not done step 3, would the user have gotten the email notification? Try filling and emptying the test user's PM box a few times (without running the query at all) and see if they get the notification each time. If the user gets a notification each time, then we still don't know what the problem is with the users who aren't getting email notifications. ETA: ... but if the user gets one notification and then doesn't get any more, then my theory might be correct.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 08:49 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.05619 seconds
  • Memory Usage 2,213KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (3)bbcode_code
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (7)post_thanks_box
  • (7)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (7)post_thanks_postbit_info
  • (7)postbit
  • (7)postbit_onlinestatus
  • (7)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete