The patch adds drush integration with two commands. One to count the current mail spool and one the send a defined amount of mails.

Additionally, this also fixes a bug with the execution_time detection when set to 0 (=disabled), returns the sent count in the mail_spool() function (so that the information can be printed with drush) and made sure that the count function always returns an integer and not FALSE if no records exist that matches the conditions.

CommentFileSizeAuthor
drush.patch4.34 KBberdir

Comments

miro_dietiker’s picture

Looks generally cool.

Some slight inconsistencies

+  $no_description = drush_get_option(array('p', 'pipe'));
...
+    if (drush_get_option('pipe')) {

I think they should be and look the same.

I also found a var_dump tb removed.

For the output i would write:

+      drush_print_pipe($sent . " " . $remaining);
berdir’s picture

Status: Needs review » Fixed

Fixed the issues and commited.

Status: Fixed » Closed (fixed)

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