Cleanup old config keys
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
#
|
||||
# NOTE: Committing the configuration will remove all these comments. If you want to keep
|
||||
# this as a reference or something, make sure to keep a copy!
|
||||
# this as a reference or something, make sure to keep a copy! It is recommended that you
|
||||
# copy this file to casey.yaml, edit it, and then configure casey to use this config.
|
||||
#
|
||||
# - Periods and durations can usually be configured as a number, or as a duration string
|
||||
# listing the number of d(ays), h(ours), m(inutes) etc; eg. "6h30m"
|
||||
@@ -50,6 +51,7 @@ mailInboxConfig:
|
||||
username: ''
|
||||
password: ''
|
||||
secure: true
|
||||
options: { }
|
||||
mailOutboxAdapter: spool
|
||||
mailOutboxConfig:
|
||||
server: 127.0.0.1
|
||||
@@ -57,21 +59,4 @@ mailOutboxConfig:
|
||||
username: ''
|
||||
password: ''
|
||||
secure: true
|
||||
|
||||
# ///////////////////////////////////////////////////////////////////////////////
|
||||
# Deprecated options, these move into mailInboxConfig and mailOutboxConfig above
|
||||
smtpAdapter: spool
|
||||
smtpServer: 127.0.0.1
|
||||
smtpOptions: { }
|
||||
smtpPort: ''
|
||||
smtpUsername: ''
|
||||
smtpPassword: ''
|
||||
smtpEncryption: true
|
||||
imapAdapter: spool
|
||||
imapOptions: { }
|
||||
imapServer: 127.0.0.1
|
||||
imapPort: ''
|
||||
imapUsername: ''
|
||||
imapPassword: ''
|
||||
imapEncryption: true
|
||||
# ///////////////////////////////////////////////////////////////////////////////
|
||||
options: { }
|
||||
|
||||
@@ -36,20 +36,20 @@ class Configuration implements EventEmitterInterface
|
||||
const CONFIG_MAIL_INBOX_CONFIG = 'mailInboxConfig';
|
||||
const CONFIG_MAIL_OUTBOX_ADAPTER = 'mailOutboxAdapter';
|
||||
const CONFIG_MAIL_OUTBOX_CONFIG = 'mailOutboxConfig';
|
||||
const CONFIG_SMTP_ADAPTER = 'smtpAdapter';
|
||||
const CONFIG_SMTP_OPTIONS = 'smtpOptions';
|
||||
const CONFIG_SMTP_SERVER = 'smtpServer';
|
||||
const CONFIG_SMTP_PORT = 'smtpPort';
|
||||
const CONFIG_SMTP_USERNAME = 'smtpUsername';
|
||||
const CONFIG_SMTP_PASSWORD = 'smtpPassword';
|
||||
const CONFIG_SMTP_ENCRYPTION = 'smtpEncryption';
|
||||
const CONFIG_IMAP_ADAPTER = 'imapAdapter';
|
||||
const CONFIG_IMAP_OPTIONS = 'imapOptions';
|
||||
const CONFIG_IMAP_SERVER = 'imapServer';
|
||||
const CONFIG_IMAP_PORT = 'imapPort';
|
||||
const CONFIG_IMAP_USERNAME = 'imapUsername';
|
||||
const CONFIG_IMAP_PASSWORD = 'imapPassword';
|
||||
const CONFIG_IMAP_ENCRYPTION = 'imapEncryption';
|
||||
// const CONFIG_SMTP_ADAPTER = 'smtpAdapter';
|
||||
// const CONFIG_SMTP_OPTIONS = 'smtpOptions';
|
||||
// const CONFIG_SMTP_SERVER = 'smtpServer';
|
||||
// const CONFIG_SMTP_PORT = 'smtpPort';
|
||||
// const CONFIG_SMTP_USERNAME = 'smtpUsername';
|
||||
// const CONFIG_SMTP_PASSWORD = 'smtpPassword';
|
||||
// const CONFIG_SMTP_ENCRYPTION = 'smtpEncryption';
|
||||
// const CONFIG_IMAP_ADAPTER = 'imapAdapter';
|
||||
// const CONFIG_IMAP_OPTIONS = 'imapOptions';
|
||||
// const CONFIG_IMAP_SERVER = 'imapServer';
|
||||
// const CONFIG_IMAP_PORT = 'imapPort';
|
||||
// const CONFIG_IMAP_USERNAME = 'imapUsername';
|
||||
// const CONFIG_IMAP_PASSWORD = 'imapPassword';
|
||||
// const CONFIG_IMAP_ENCRYPTION = 'imapEncryption';
|
||||
|
||||
private static array $config = [
|
||||
self::CONFIG_CACHE_DEFAULT_TTL => 600,
|
||||
@@ -87,20 +87,20 @@ class Configuration implements EventEmitterInterface
|
||||
'password' => "",
|
||||
'secure' => true,
|
||||
],
|
||||
self::CONFIG_SMTP_ADAPTER => null,
|
||||
self::CONFIG_SMTP_SERVER => "127.0.0.1",
|
||||
self::CONFIG_SMTP_OPTIONS => [],
|
||||
self::CONFIG_SMTP_PORT => 25,
|
||||
self::CONFIG_SMTP_USERNAME => "",
|
||||
self::CONFIG_SMTP_PASSWORD => "",
|
||||
self::CONFIG_SMTP_ENCRYPTION => true,
|
||||
self::CONFIG_IMAP_ADAPTER => null,
|
||||
self::CONFIG_IMAP_OPTIONS => [],
|
||||
self::CONFIG_IMAP_SERVER => "127.0.0.1",
|
||||
self::CONFIG_IMAP_PORT => 143,
|
||||
self::CONFIG_IMAP_USERNAME => "",
|
||||
self::CONFIG_IMAP_PASSWORD => "",
|
||||
self::CONFIG_IMAP_ENCRYPTION => true,
|
||||
// self::CONFIG_SMTP_ADAPTER => null,
|
||||
// self::CONFIG_SMTP_SERVER => "127.0.0.1",
|
||||
// self::CONFIG_SMTP_OPTIONS => [],
|
||||
// self::CONFIG_SMTP_PORT => 25,
|
||||
// self::CONFIG_SMTP_USERNAME => "",
|
||||
// self::CONFIG_SMTP_PASSWORD => "",
|
||||
// self::CONFIG_SMTP_ENCRYPTION => true,
|
||||
// self::CONFIG_IMAP_ADAPTER => null,
|
||||
// self::CONFIG_IMAP_OPTIONS => [],
|
||||
// self::CONFIG_IMAP_SERVER => "127.0.0.1",
|
||||
// self::CONFIG_IMAP_PORT => 143,
|
||||
// self::CONFIG_IMAP_USERNAME => "",
|
||||
// self::CONFIG_IMAP_PASSWORD => "",
|
||||
// self::CONFIG_IMAP_ENCRYPTION => true,
|
||||
|
||||
];
|
||||
|
||||
@@ -119,6 +119,7 @@ class Configuration implements EventEmitterInterface
|
||||
self::$config,
|
||||
$config
|
||||
);
|
||||
ksort(self::$config);
|
||||
if ($primary) {
|
||||
self::$configFile = $filename;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user