summaryrefslogtreecommitdiff
path: root/src/lib/kdm_with_metadata.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2022-09-17 23:36:22 +0200
committerCarl Hetherington <cth@carlh.net>2022-09-17 23:36:22 +0200
commitf1b2884943ab6fd1e3ba37b017d41b65645f49dc (patch)
treeb4b63564cc2f90b4e90d3efd785ae181f49c46c7 /src/lib/kdm_with_metadata.cc
parentb0fc1ec3b159b7a7fa917f2e338485921800374e (diff)
Don't try to send KDM email unless we have a from address.
Diffstat (limited to 'src/lib/kdm_with_metadata.cc')
-rw-r--r--src/lib/kdm_with_metadata.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/lib/kdm_with_metadata.cc b/src/lib/kdm_with_metadata.cc
index 5c1ab0aa6..bebb5df86 100644
--- a/src/lib/kdm_with_metadata.cc
+++ b/src/lib/kdm_with_metadata.cc
@@ -212,6 +212,10 @@ send_emails (
throw NetworkError (_("No mail server configured in preferences"));
}
+ if (config->kdm_from().empty()) {
+ throw NetworkError(_("No KDM from address configured in preferences"));
+ }
+
for (auto const& kdms_for_cinema: kdms) {
auto first = kdms_for_cinema.front();