Skip to content

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

Merged
hpk42 merged 21 commits intomainfrom
hpk/tokendirs
Mar 28, 2024
Merged

store devicetokens inside per-user mailboxdir, allow multiple tokens per account, support GETMETADATA and add tests#254
hpk42 merged 21 commits intomainfrom
hpk/tokendirs

Conversation

@hpk42
Copy link
Copy Markdown
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
Comment thread chatmaild/src/chatmaild/filedict.py Outdated
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