The update module can send you email when a new release is available for a module you installed. The problem is I get a email everyday. Some security update are very minor and unreachable for an attacker, I don't want to update the website and so I don't want future notification about this update.

I would like to be notified every time their is an new update, not every day for the sames updates.

  • 1
    That'll need a core patch (to update_requirements() and _update_cron_notify() at least by the looks of things). It would be much easier to ignore the emails and check the site manually on a schedule that suits your workflow – Clive Jul 16 '13 at 8:14
  • 4
    This looks to me more of a feature request for the core update module, than a question. This should be discussed on a issue queue on drupal.org and not here. – AjitS Jul 16 '13 at 8:15
  • Gmail is pretty good at hiding duplicated content in conversation, so I'm getting mails but see immediately if there's something new or not. On the other side, I don't ignore updates (I have the luxury of applying them as they go), so haven't tested with this particular mailing. – Mołot Jul 16 '13 at 8:17

I can use hook_mail_alter to cancel the sending of the mail. I can simply store a md5 of the mail's body every time the mail is send and compare it with the "new" email, if it's the same I don't send it.

  • I'm not sure about the MD5 of the emails, but instead of using hook_form_alter, I'd suggest you to use the hook_mail_alter(), instead. you can do the check in that function and then set the argument of the function $message['send'] to FALSE to stop the mail from being sent, based on the condition (MD5). – AjitS Jul 16 '13 at 11:33
  • I said hook_mail_alter... edited my message to make a proper link. – gagarine Jul 16 '13 at 11:37
  • Oh, my bad! Slip of sight I suppose ;-) – AjitS Jul 16 '13 at 11:41

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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