Re: [greenstone-users] notifying users

From Michael Dewsnip
DateTue, 28 Sep 2004 12:16:22 +1200
Subject Re: [greenstone-users] notifying users
In-Reply-To (p0611040abd7e094c9648-172-16-1-51)
Hi Rich,

Greenstone doesn't have this ability, but I don't think it would be too
difficult to add.

You could detect new documents by looking for differences between the
previous archives directory and the new one. Alternatively, the "quick
and dirty" approach would be to just add a "-notify_users" flag to that you manually tick on whenever you've added new
documents. You'd then need a little bit of Perl code to read a text file
of e-mail addresses and run the script to send off the

If you're stronger in Java than Perl you could do most of this into the
GLI (you can still use the script though). The disadvantage
of this is that you wouldn't be able to notify users if you ever needed
to build collections from the command line.

This would be a useful feature for Greenstone to have, so I'll add it to
our "to do" list (but don't hold your breath!).



PS The Collector actually has some functionality for notifying users
about collection events, but you wouldn't want to use it to build real
collections. However you might like to have a look at the code in
src/recpt/collectoraction.cpp for examples of using etc.

Rich Robinson wrote:

> Hi,
> Would anyone know of a way to automate notifying users when new
> materials are added to a library? I'd like a way for people to enter
> their email address and as the library grows, they receive
> notifications by e-mail. Anything you know of that would integrate
> with Greenstone would be great to find out about.
> Rich
> _______________________________________________
> greenstone-users mailing list