mirror of
https://github.com/ElvishArtisan/rivendell.git
synced 2025-11-26 15:20:29 +01:00
2020-12-24 Fred Gleason <fredg@paravelsystems.com>
* Modified rdimport(1) so as to send e-mail reports to the address of the current Rivendell user in addition to the group's Notification E-Mail Address. * Modified the Webget service so as to send e-mail reports to the address of the current Rivendell user in addition to the group's Notification E-Mail Address. Signed-off-by: Fred Gleason <fredg@paravelsystems.com>
This commit is contained in:
@@ -417,6 +417,17 @@ void MainObject::PutAudio()
|
||||
f1.removeLast();
|
||||
QString title=f1.join(".");
|
||||
|
||||
//
|
||||
// Generate destination e-mail addresses
|
||||
//
|
||||
QStringList to_addrs;
|
||||
if(!group->notifyEmailAddress().isEmpty()) {
|
||||
to_addrs.push_back(group->notifyEmailAddress());
|
||||
}
|
||||
if(!rda->user()->emailAddress().isEmpty()) {
|
||||
to_addrs.push_back(rda->user()->emailAddress());
|
||||
}
|
||||
|
||||
//
|
||||
// Validate title uniqueness
|
||||
//
|
||||
@@ -442,9 +453,12 @@ void MainObject::PutAudio()
|
||||
short_name.toUtf8().constData(),
|
||||
rda->user()->name().toUtf8().constData(),
|
||||
webget_post->clientAddress().toString().toUtf8().constData());
|
||||
RDSendMail(&err_msg,tr("Rivendell import FAILURE for file: ")+short_name,
|
||||
body,rda->system()->originEmailAddress(),
|
||||
group->notifyEmailAddress());
|
||||
if(to_addrs.size()>0) {
|
||||
RDSendMail(&err_msg,tr("Rivendell import FAILURE for file: ")+
|
||||
short_name,body,rda->system()->originEmailAddress(),
|
||||
to_addrs);
|
||||
//group->notifyEmailAddress());
|
||||
}
|
||||
TextExit(tr("Audio import failed: title already exists!"),400,
|
||||
LINE_NUMBER);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user