[daisy] Option to disable email notifications
Paul Focke
paul at outerthought.org
Fri Jul 7 04:50:03 CDT 2006
Bruno Dumon wrote:
> Hi,
>
> For the change to the new document ID format in Daisy 2.0, I've written
> a little tool that can update links in existing documents to the new
> format (an optional conversion, since the existing document IDs without
> namespaces will still work too).
>
> Since on large repositories this could lead to a big number of updates,
> it might be useful to be able to disable the sending of e-mail
> notifications temporarily.
>
> For this I first thought of adding an enabled/disabled flag in the
> configuration of the emailnotifier component (in myconfig.xml). While
> disabled, the emailnotifier would ignore all JMS events and don't send
> any mails out. This will then of course apply to all change events, not
> only those caused by the e.g. the document ID convertor tool.
>
> To make it more selective, we could also allow to filter the events
> based upon who (which user) did the update. So that would allow to use a
> specific user for the convertor tool, and updates made by that user
> would be ignored by the email notifier. This is just a little bit more
> work to implement, but would be useable for ignoring other regular
> automated updates too.
>
> WDYT? Any other ideas?
>
>
I like the filter idea with some kind of 'custodian' user that gets
ignored by everyone :-) The filter could be defined as a daisy query
something like "select name where variantLastModifierName='custodian'"
Some ideas :
* What about extending the wildcards for email notification, so that one
might be able to specify "DSY-*, main, en" to just receive
changes on documents that belong to a certain namespace. However
changing the imported document on the target machine will not generate
notifications either.
* Expose the email notifier as an MBean. So it could be switched off &
on by the importer, a bit how the backup locker works now. However
changes to 'native' documents (those that aren't being imported) will
not trigger notifications during the import either.
Paul
More information about the daisy
mailing list