Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

store devicetokens inside per-user mailboxdir, allow multiple tokens per account, support GETMETADATA and add tests #254

Merged
merged 21 commits into from
Mar 28, 2024

Conversation

hpk42
Copy link
Contributor

@hpk42 hpk42 commented Mar 27, 2024

supersedes #243

As discussed here it is possible to know the mailbox-dir for metadata get/set requests so this PR sets/gets devicetokens accordingly.
This means that a mailbox-dir (the inbox folder of a user basically) contains also the metadata, now in the "metadata.marshalled" file in the inbox folder.
The data is persisted using the builtin "marshal" module and guarded by an os-level file lock.

The PR also adds both local as well as online tests, and adds support for GETMETADATA.

@hpk42 hpk42 changed the title store devicetokens inside per-user mailboxdir, support GETMETADATA and add tests store devicetokens inside per-user mailboxdir, allow multiple tokens per account, support GETMETADATA and add tests Mar 27, 2024
@hpk42 hpk42 requested a review from link2xt March 27, 2024 19:20
chatmaild/src/chatmaild/filedict.py Outdated Show resolved Hide resolved
@hpk42 hpk42 merged commit c640087 into main Mar 28, 2024
4 checks passed
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