I'm looking for a module to be created for an existing drupal 5.x site. The site allows users to purchase nodes which sell their services. The users have ownership over their own nodes, are able to update as required and pay a monthly, yearly or sometimes 6 month fee for this node.
I want the ability to automatically unpublish their nodes/ads when their payment runs out and send them an email just before expiration and then send both them and the admin an email once it is expired.
Below are a few more specifics on what I want. I'm open to better suggestions from people on how to do it.
1. A new field for a particular content type (this is a per node field and can be different for each node), which allows you to set a date that the node should be unpublished. This will be set and updated by the admin only.
2. 5 days prior to unpublishing the node, an email should be sent to the node owner explaining their node is about to expire. This email should be configurable (email 1).
3. When node is unpublished, a final email should be sent to the node owner and admin that the node has been unpublished. This email should be configurable (email 2).
4. A listing of all nodes of this content type and their expiring date (if possible).