Skip to content

feat: stop requiring XDELTAPUSH capability for push notifications - #8454

Merged
hpk42 merged 2 commits into
mainfrom
hpk/try-device-token
Jul 30, 2026
Merged

feat: stop requiring XDELTAPUSH capability for push notifications#8454
hpk42 merged 2 commits into
mainfrom
hpk/try-device-token

Conversation

@hpk42

@hpk42 hpk42 commented Jul 23, 2026

Copy link
Copy Markdown
Contributor

try to register device tokens if XDELTAPUSH in IMAP capabilities or delta/maxsmtprecipients metadata key is present, so the PR works for both old and future relays that will drop XDELTAPUSH.

Also removes the unused getPushState API and simplifies /private/devicekey metadata token key writing to be ASCII, and thus not in need of LITERAL+ encoding.
see also #8448

Comment thread src/imap.rs
Comment thread src/imap.rs Outdated
@hpk42
hpk42 force-pushed the hpk/try-device-token branch from cb60880 to feb8def Compare July 24, 2026 11:47
Comment thread src/imap.rs Outdated
Comment thread src/imap.rs Outdated
@link2xt

link2xt commented Jul 24, 2026

Copy link
Copy Markdown
Collaborator

there will now be a spurious setmetadata call but that only leaks an encrypted device token and is overall rare and not the main use case.

Can also move the discussion here from #8454 (comment)

It is not clear that it is rare as i checked mailcow and it supports metadata out of the box and simply stored the token on the inbox. @Hocuri checked gmx and it does not support metadata (including post-login).

The token is encrypted, but it is encrypted once per profile and not per transport, so i think we should start encrypting it per-transport and not into the global config value (not in this PR).

@hpk42

hpk42 commented Jul 24, 2026

Copy link
Copy Markdown
Contributor Author

i am not convinced spurious setmetadata calls are a real-world problem we want to care about, but added a commit to avoid spurious setmetadata calls, anyway.

@hpk42
hpk42 force-pushed the hpk/try-device-token branch from 157e235 to 3c19c2a Compare July 26, 2026 15:38
@hpk42

hpk42 commented Jul 26, 2026

Copy link
Copy Markdown
Contributor Author

i also dropped getPushState support, and rebased the PR into two clean commits (not to be squashed on merge)

@hpk42
hpk42 force-pushed the hpk/try-device-token branch from 3c19c2a to 8440c1b Compare July 30, 2026 08:36
hpk42 added 2 commits July 30, 2026 11:47
register device token if XDELTAPUSH IMAP capability is available (current relay setup provides it)
or if "maxsmtprecipients" IMAP metadata key is available (relays since May 2026 provide it),
allowing chatmail relay setups to drop XDELTAPUSH capability marker with the next release
while retaining push notification support.
Since deltachat/deltachat-ios#3224 pushstate is not used
(android, desktop etc. never used it, only ios)
@hpk42
hpk42 force-pushed the hpk/try-device-token branch from 8440c1b to 390d8a1 Compare July 30, 2026 09:50
@hpk42
hpk42 merged commit 35555ca into main Jul 30, 2026
30 checks passed
@hpk42
hpk42 deleted the hpk/try-device-token branch July 30, 2026 15:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants