Status
Not open for further replies.

hqarrse

Customer
Hi, I'm finding that bounced emails are correctly setting the bounce flag, with this visible in the user admincp user pages, but that these users are still being sent topic reply notifications. My reading of the docs is that this shouldn't be the case and all standard VB email should obey the bounce flag. Do I have a bug and if so could anyone give me a suggestion of what it might be? If not have I misunderstood the functionality, and vbMail / VB is behaving as expected?

Thanks!
 
They will get sent emails for topics they reply to after the fact, if they subscribe to new emails. I don't know if there's anything I can do about that, tbh D:
 
Thanks Fillip H.. I'm afraid I'm misusing your hard work slightly as this is the most important feature for me, rather than the emailing itself. I will take a look and see if I can extend it slightly, either by checking the flag when any mail is sent by the system, or by turning the user's default subscription off when the bounce flag is set. If I find a neat solution I'll post it.
 
I've come up with a simple cron script for this, to go in /includes/cron and run through the normal VB scheduled tasks. It would benefit from some more logging sophistication and error handling, but the basics are there and I'll run with it for now:

Code:
<?php
error_reporting(E_ALL & ~E_NOTICE);
if (!is_object($vbulletin->db))
{
        exit;
}
        $vbulletin->db->query_write("
                UPDATE " . TABLE_PREFIX . "subscribethread SET emailupdate = 0
                WHERE userid IN(SELECT u.userid FROM " . TABLE_PREFIX . "user u 
                WHERE u.dbtech_vbmail_bounceflag = '1' AND u.autosubscribe > 0)
        ");
        $vbulletin->db->query_write("
                UPDATE " . TABLE_PREFIX . "user u SET u.autosubscribe = 0
                WHERE u.dbtech_vbmail_bounceflag = '1' AND u.autosubscribe > 0
        ");

        log_cron_action('Subscriptions removed for bounced email addresses', $nextitem, 0);

?>
 
I'll investigate whether I can add a hook to the subscription sending code to skip those with the bounce flag, but I can't make any promises :)
 
Status
Not open for further replies.

Legacy vBMail

vBulletin 3.8.x vBulletin 4.x.x
Seller
DragonByte Technologies
Release date
Last update
Total downloads
732
Customer rating
0.00 star(s) 0 ratings
Back
Top