I'm gettting some nasty errors when media mover tries to email me about a job being stuck. Here's a quick solution

line 737:
drupal_mail_send(array('id' => 'media_mover_api_job_running', 'to' => variable_get('mma_cron_notify_email', null), 'subject' => $subject, 'body' => drupal_wrap_mail(t($message, $params))));

line 827:

      drupal_mail_send(array('id' => 'media_mover_api_job_running',
        'to' => $configuration->settings->mma_cron_notify_email ?
          $configuration->settings->mma_cron_notify_email :
          variable_get('mma_cron_notify_email', null),
        'subject' => $subject, 'body' => drupal_wrap_mail($message)));

Comments

John Hodgins’s picture

Rewriting that code to only send the notification once would be nice too; i'll try to make a patch soon...

arthurf’s picture

Status: Active » Fixed

This was a super old function that I had not paid attention to. I updated this to use the $configuration settings so you can have per configuration settings. Also back ported to D5

Status: Fixed » Closed (fixed)

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