mirror of
https://github.com/ElvishArtisan/rivendell.git
synced 2025-10-10 16:43:35 +02:00
2020-11-23 Fred Gleason <fredg@paravelsystems.com>
* Added a 'DROPBOXES.SEND_EMAIL' field to the database. * Incremented the database version to 345. * Added 'RDDropbox::sendEmail()' and 'RDDropbox::setSendEmail()' methods. * Added a 'Send e-mail reports' checkbox to the 'Dropbox Configuration' dialog in rdadmin(1). Signed-off-by: Fred Gleason <fredg@paravelsystems.com>
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
//
|
||||
// Startup routines for the Rivendell Services Manager
|
||||
//
|
||||
// (C) Copyright 2018-2019 Fred Gleason <fredg@paravelsystems.com>
|
||||
// (C) Copyright 2018-2020 Fred Gleason <fredg@paravelsystems.com>
|
||||
//
|
||||
// This program is free software; you can redistribute it and/or modify
|
||||
// it under the terms of the GNU General Public License version 2 as
|
||||
@@ -248,7 +248,8 @@ bool MainObject::StartDropboxes(QString *err_msg)
|
||||
"SET_USER_DEFINED,"+ // 20
|
||||
"FORCE_TO_MONO,"+ // 21
|
||||
"SEGUE_LEVEL,"+ // 22
|
||||
"SEGUE_LENGTH "+ // 23
|
||||
"SEGUE_LENGTH,"+ // 23
|
||||
"SEND_EMAIL "+ // 24
|
||||
"from DROPBOXES where "+
|
||||
"STATION_NAME=\""+RDEscapeString(rda->config()->stationName())+"\"";
|
||||
q=new RDSqlQuery(sql);
|
||||
@@ -300,6 +301,10 @@ bool MainObject::StartDropboxes(QString *err_msg)
|
||||
if(q->value(13).toString()=="Y") {
|
||||
args.push_back("--delete-source");
|
||||
}
|
||||
if(q->value(24).toString()=="Y") {
|
||||
args.push_back("--send-mail");
|
||||
args.push_back("--mail-per-file");
|
||||
}
|
||||
if(q->value(17).toString()=="Y") {
|
||||
args.push_back(QString().sprintf("--create-startdate-offset=%d",
|
||||
q->value(18).toInt()));
|
||||
|
Reference in New Issue
Block a user