Demo Discussion
Forum Config Examples Contributions Vulnerabilities
  Discussion forum about ELOG  Not logged in ELOG logo
Message ID: 68809     Entry time: Wed May 23 14:44:08 2018
Icon: Question  Author: Stefano Lacaprara  Author Email: stefano.lacaprara@pd.infn.it 
Category: Question  OS: Linux  ELOG Version: V3.1.3 
Subject: both "email <attribute> <value" and "email all" at the same time 
Hi, 
  I have an elogbook which sends notifications to subscribers, plus, if the "Type" is "New Run", it sends the notification to a different mailing addeess and with a different subject (which need to be parsed by 
a script, but that's not relevant). All works fine: the snippet of config is below.

Attributes = Subject, Author, Type
Options Type = New Run{1}



Email All = all@experiment.org
Use Email Subject = [demo] $Subject from $Author

Email Type "New Run" = new-run@experiment.org
{1} Use Email Subject = NEWRUN

However, I'd like that the notification is always sent to all@experiment.org for all entries with the standard subject, and *also* to new-run@experiment.org in case of new run with the customized one.
Apparently with the config that I'm using this is not happening, and the "new run" are only sent to new-run@experiment.org (w/ subject NEWRUN).
I could easily add the generic address in addition to new-run@experiment.org, ie:

Email Type "New Run" = new-run@experiment.org, all@experiment.org

but in this case the subject would be "NEWRUN", while I'd like it to be "[demo] $Subject from $Author".

Any idea about how this can be done?

thanks in advance, Stefano
ELOG V3.1.5-3fb85fa6