Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Problem/Motivation
When the module is enabled but no hard or soft limits have been defined, systems using the message_notify module will experience subscription removals for users whose email addresses are present in the bounce_statistics table.
Comment | File | Size | Author |
---|---|---|---|
#1 | bounce_handler-2492467-1.patch | 3.19 KB | bdurbin |
Comments
Comment #1
bdurbin CreditAttribution: bdurbin commentedIt looks as if the conditions count check is always returning TRUE due to the $query->conditions() call return value looking like what's below, regardless of whether or not any of the specific limit-related clauses have been added:
A draft patch is attached. If it's desired that the table cleanup at the bottom of the hook_cron() implementation still occurs even in the case where neither limit is configured, I'd suggest we break out cleanup and unsubscribe logic into separate child functions, which I'd be happy to do in an updated patch.
Comment #3
killes@www.drop.org CreditAttribution: killes@www.drop.org commenteda rather unfortunate oversight...
I've reviewed but not tested the patch and pushed it to git.
I will roll a beta2 release.
Thanks!