v1.0.23-debug — SOGo host auto-pick (mail → email)
Fix: CalDAV/CardDAV now auto-selects the reachable SOGo host
Root cause (from your logcat): the device could not reach mail.houseofmanns.com
(DNS failed at 16:12, and :443 hung at 16:25 — "Timed out waiting for 120000 ms"),
while your SOGo install serves DAV on email.houseofmanns.com (your ADDITIONAL_SERVER_NAME)
and IMAP on imap.houseofmanns.com:993 works fine. The app had hardcoded mail.<domain>,
so calendar + tasks never synced.
Changes:
- ServerConfig.resolveSogoHost(domain): does a real TLS handshake on
:443, tries
mail.<domain>thenemail.<domain>, and uses whichever actually answers. No more
guessing the SOGo host — it's measured, not assumed. - MailcowDefaults takes the resolved host; AddAccountScreen runs the probe on an IO
dispatcher so it never blocks the UI thread. - Autodiscover uses the same probe.
- Calendar/Task sync clients lowered to 15s connect / 30s read so a bad host fails fast.
Install the APK below (sideload). After Confirm, calendars + tasks should populate from
email.houseofmanns.com/SOGo/dav/.... Email (IMAP) is unchanged and working.
Verify (logcat)
Expect: caldavUrl=https://email.houseofmanns.com/SOGo/dav/... and
CalendarSyncEngineImpl / TaskSyncEngineImpl legs success=true (no 120s timeout).