The scenario is that bounces weren't being fetched and there is now a major backlog, and that running 50 every cron is too slow to make real progress.


Here is one approach - modify /civicrm/CRM/Utils/Mail/EmailProcessor.php

so it has multiple iterations specified (in example below = 40) then run via

drush cvapi Job.fetch_bounces

around line 178

// process fifty at a time, CRM-4002 $iterations = 0; while ($iterations < 40 && $mails = $store->fetchNext(MAIL_BATCH_SIZE)) { $iterations++; print("\nBeginning iteration $iterations "); foreach ($mails as $key => $mail) { print(".");

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.