summaryrefslogtreecommitdiff
path: root/src/lib/config.h
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2019-03-28 23:10:56 +0000
committerCarl Hetherington <cth@carlh.net>2019-03-28 23:10:56 +0000
commite075012124424b77044b5d61885ed2646d3781cd (patch)
tree2dcbb52ee8d7871c7764dcfda49f9afeea11d656 /src/lib/config.h
parentbfb4de070d078fb4b4ea7cd4dc931439058c7a85 (diff)
Allow explicit specification of email protocol (plain/STARTTLS/SSL).v2.13.138
Diffstat (limited to 'src/lib/config.h')
-rw-r--r--src/lib/config.h15
1 files changed, 12 insertions, 3 deletions
diff --git a/src/lib/config.h b/src/lib/config.h
index 7d21964a4..a982c9727 100644
--- a/src/lib/config.h
+++ b/src/lib/config.h
@@ -116,7 +116,7 @@ public:
return _only_servers_encode;
}
- Protocol tms_protocol () const {
+ FileTransferProtocol tms_protocol () const {
return _tms_protocol;
}
@@ -229,6 +229,10 @@ public:
return _mail_port;
}
+ EmailProtocol mail_protocol () const {
+ return _mail_protocol;
+ }
+
std::string mail_user () const {
return _mail_user;
}
@@ -563,7 +567,7 @@ public:
maybe_set (_only_servers_encode, o);
}
- void set_tms_protocol (Protocol p) {
+ void set_tms_protocol (FileTransferProtocol p) {
maybe_set (_tms_protocol, p);
}
@@ -682,6 +686,10 @@ public:
maybe_set (_mail_port, p);
}
+ void set_mail_protocol (EmailProtocol p) {
+ maybe_set (_mail_protocol, p);
+ }
+
void set_mail_user (std::string u) {
maybe_set (_mail_user, u);
}
@@ -1138,7 +1146,7 @@ private:
/** J2K encoding servers that should definitely be used */
std::vector<std::string> _servers;
bool _only_servers_encode;
- Protocol _tms_protocol;
+ FileTransferProtocol _tms_protocol;
/** The IP address of a TMS that we can copy DCPs to */
std::string _tms_ip;
/** The path on a TMS that we should write DCPs to */
@@ -1180,6 +1188,7 @@ private:
std::list<boost::shared_ptr<Cinema> > _cinemas;
std::string _mail_server;
int _mail_port;
+ EmailProtocol _mail_protocol;
std::string _mail_user;
std::string _mail_password;
std::string _kdm_subject;