summaryrefslogtreecommitdiff
path: root/app/ui/legacy/src/debug/java/com
diff options
context:
space:
mode:
authortest@dangofactory.cos <you@example.com>2026-08-20 16:57:18 +0000
committertest@dangofactory.cos <you@example.com>2026-08-20 16:57:18 +0000
commit50ce5d5e6cd0d720ff437d35eace545816848428 (patch)
treeb59af206a36265cf081945e434900b32b0c43edd /app/ui/legacy/src/debug/java/com
downloadmonocles_mail-50ce5d5e6cd0d720ff437d35eace545816848428.tar.gz
monocles_mail-50ce5d5e6cd0d720ff437d35eace545816848428.tar.bz2
monocles_mail-50ce5d5e6cd0d720ff437d35eace545816848428.zip
Inital
Diffstat (limited to 'app/ui/legacy/src/debug/java/com')
-rw-r--r--app/ui/legacy/src/debug/java/com/fsck/k9/ui/settings/ExtraAccountDiscovery.kt27
1 files changed, 27 insertions, 0 deletions
diff --git a/app/ui/legacy/src/debug/java/com/fsck/k9/ui/settings/ExtraAccountDiscovery.kt b/app/ui/legacy/src/debug/java/com/fsck/k9/ui/settings/ExtraAccountDiscovery.kt
new file mode 100644
index 0000000..df09c4e
--- /dev/null
+++ b/app/ui/legacy/src/debug/java/com/fsck/k9/ui/settings/ExtraAccountDiscovery.kt
@@ -0,0 +1,27 @@
+package com.fsck.k9.ui.settings
+
+import com.fsck.k9.mail.AuthType
+import com.fsck.k9.mail.ConnectionSecurity
+import com.fsck.k9.mail.ServerSettings
+import com.fsck.k9.ui.ConnectionSettings
+
+object ExtraAccountDiscovery {
+ @JvmStatic
+ fun discover(email: String): ConnectionSettings? {
+ return if (email.endsWith("@k9mail.example")) {
+ val serverSettings = ServerSettings(
+ type = "demo",
+ host = "irrelevant",
+ port = 23,
+ connectionSecurity = ConnectionSecurity.SSL_TLS_REQUIRED,
+ authenticationType = AuthType.AUTOMATIC,
+ username = "irrelevant",
+ password = "irrelevant",
+ clientCertificateAlias = null
+ )
+ ConnectionSettings(incoming = serverSettings, outgoing = serverSettings)
+ } else {
+ null
+ }
+ }
+}