Download & Extend

Help needed - node_expire is e-mailing every hour to tell me that every node on my website is about to expire!! ;o)

Project:Node expire
Version:6.x-2.05
Component:Documentation
Category:support request
Priority:normal
Assigned:Unassigned
Status:closed (duplicate)

Issue Summary

Hello everyone,

I've been a bit thick with node expire, and obviously haven't set it up properly.

I've installed it and created a rule to send an e-mail to the owner of the node when an item of content is about to expire.

Unfortunately, I seem to have made a mistake (or several!) as I'm being e-mailed on every cron run, with one e-mail per node on my site (regardless of whether it has an expiry date or not).

The rule says simply:
- if node is expired
- send an e-mail to the node author

So, I need to know:
- how do I set node_expire up so that it e-mails me once and once only when a node is about to expire
- how do I make sure I only receive an e-mail for nodes which actually have an expiry date set?
- do I need to set a flag once the e-mail has been sent, and if so, how do I then un-set it once the node has been updated?

Any help anyone could offer would be really gratefully received - thank you!!

Al

Comments

#1

I'm having the same issue. My rule is setup to email users when the node has expired. However, it runs every hour when cron runs and starts at midnight, so in my testing I have ended up spamming myself with notifications all night. Only one notification email is necessary. Hopefully there is a way to fix this.

#2

I ended up switching back to Date module + Rules for the added flexibility offered with Date module. I was able to solve the cron problem by reading these tutorials. The same procedures may also work with Node Expire + Rules (it is a bit complex but worth the time to figure it out):

http://drupal.org/node/520012
http://drupal.org/node/517674

#3

In the rule, you need to add a condition: "Node is published."

Otherwise every time cron runs, it will see that the node is (still) expired and send the mail again.

#4

Version:6.x-2.03» 6.x-2.05
Status:active» closed (duplicate)

http://drupal.org/node/435560

#5

I have another solution, create a single cck checkbox field and in your rules just validate if the checkbox is OFF and the node not expired. Then you can send the email notification and turn the checkbox ON.

This work perfect if you only want send a email notification one time and not unpublish the node