At the moment, subscriptions_mail.cron.inc will not send mail to users with either $user->status == 0 or $user->access == 0.

However, there are certain use cases where the latter is desirable. I wonder if we could put in a variable that could toggle this behaviour on and off? For the meantime, this could be set only manually, eg. via settings.php or in the database?

Comments

torrance123’s picture

torrance123’s picture

Status: Active » Needs review

Status: Needs review » Needs work

The last submitted patch, subscriptions-allow_mailing_unaccessed_users-2073855-1.patch, failed testing.

torrance123’s picture

torrance123’s picture

Status: Needs work » Needs review

Status: Needs review » Needs work

The last submitted patch, subscriptions-allow_mailing_unaccessed_users-2073855-4.patch, failed testing.

torrance123’s picture

Version: 7.x-1.1 » 7.x-1.x-dev
torrance123’s picture

Status: Needs work » Needs review
torrance123’s picture

*Bump* There's a patch provided here for this feature request which is passing all tests.

Can one of the maintainers please take a look?

salvis’s picture

Status: Needs review » Fixed

Ok, pushed to the -dev version.

Since this is a read-only variable, I don't think we need to remove it in hook_uninstall().

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.