In some cases (such as when sending a mail the queue doesnt work :), it would be great to allow to bypass the queue by options in message.

Comments

mkolar’s picture

Assigned: Unassigned » mkolar
Status: Active » Needs review
StatusFileSize
new546 bytes

Here it is... You can add skip_queue=TRUE to the message params...
$message['params']['skip_queue'] = TRUE;

ann b’s picture

@mkolar: thank you very much for the patch. It works great! Here is the custom module code in case someone else needs it:

function <mymodule>_mail_alter(&$message) {

    if ($message['module'] == 'rules') {
            $message['params']['skip_queue'] = FALSE;
        } else {
            $message['params']['skip_queue'] = TRUE;
        }

}
mojzis’s picture

Status: Needs review » Reviewed & tested by the community

we are using it in production and are happy :)

  • wundo committed a7859d9 on 7.x-1.x authored by mkolar
    Issue #2453673 by mkolar: Allow to bypass queue
    
wundo’s picture

Status: Reviewed & tested by the community » Fixed

Committed, thanks!

mkolar’s picture

Status: Fixed » Needs review
StatusFileSize
new566 bytes

Hi, looks like you deleted this patch code here: http://cgit.drupalcode.org/smtp/commit/?id=c7db119f6217e403b54b9f365cfe9...

Here is re-roll for this patch. Please commit it :) Thanks!

The last submitted patch, 1: bypass_queue-2453673-1.patch, failed testing.

mojzis’s picture

Status: Needs review » Reviewed & tested by the community

wundo queued 6: bypass_queue-2453673-6.patch for re-testing.

wundo’s picture

wundo’s picture

wundo’s picture

Status: Reviewed & tested by the community » Needs review
StatusFileSize
new684 bytes

Updated patch.

  • wundo committed da1866d on 7.x-1.x
    Issue #2453673 by mkolar, wundo: Allow to bypass queue
    
wundo’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

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