diff options
| author | Carl Hetherington <cth@carlh.net> | 2013-12-23 21:53:51 +0000 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2013-12-23 21:53:51 +0000 |
| commit | 320c9b6d68d111bc0768e210cc8c7ae9d0d7c22e (patch) | |
| tree | 7ad4f70d6d32fc465b5826b333596696f67e8972 /src/lib/config.cc | |
| parent | 692e67b9dc1e8cd72546b3766e8f38956932ee58 (diff) | |
Move default config options into their own tab; support user/password for SMTP TLS/SSL.
Diffstat (limited to 'src/lib/config.cc')
| -rw-r--r-- | src/lib/config.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/lib/config.cc b/src/lib/config.cc index 87cce9d7b..1c34619b4 100644 --- a/src/lib/config.cc +++ b/src/lib/config.cc @@ -176,6 +176,8 @@ Config::read () } _mail_server = f.string_child ("MailServer"); + _mail_user = f.optional_string_child("MailUser").get_value_or (""); + _mail_password = f.optional_string_child("MailPassword").get_value_or (""); _kdm_from = f.string_child ("KDMFrom"); _kdm_email = f.string_child ("KDMEmail"); } @@ -347,6 +349,8 @@ Config::write () const } root->add_child("MailServer")->add_child_text (_mail_server); + root->add_child("MailUser")->add_child_text (_mail_user); + root->add_child("MailPassword")->add_child_text (_mail_password); root->add_child("KDMFrom")->add_child_text (_kdm_from); root->add_child("KDMEmail")->add_child_text (_kdm_email); |
