From: Tansley, Robert <robert.tansley@hp...> - 2003-07-15 16:07:49
> >1. What would make the email triggers not work (a
> person is subscribed
> >to a collection and never receives an email when a new
> addition is made
> >to the collection).
The /dspace/bin/subs-daily script sends out emails when new items arrive in collections. It needs to be run every day -- it only sends out emails for items that arrived the day before the day it's run. If no subscription emails are being sent, it's likely that either:
1/ The script isn't being run (see the cron note below)
2/ Sending email isn't working -- check the mail.server property in your dspace.cfg.
A good way to test is to subscribe yourself to a collection, submit an item to that collection, and then, the next day, run /dspace/bin/subs-daily manually. If you get the subscription email OK, then 1/ is likely to be the problem, otherwise it's likely to be 2/.
If you have a problem, you can fiddle about with settings and keep trying /dspace/bin/subs-daily until it works: It will always send an email if something new appeared in the collection the previous day.
> >2. How often is the cron set to run? How is it set up?
To set up cron so it runs that script every day, enter in a shell script this command (as the dspace user):
You should then have an empty file to edit. Paste in the following, which sets the script to run every day at 1am:
0 1 * * * /dspace/bin/sub-daily
Save the file, and now subscriptions should work just fine.
Hope this helps,
Robert Tansley / Hewlett-Packard Laboratories / (+1) 617 551 7624