Skip to content

Commit

Permalink
fix(GODT-1896): Do not remove subscribed status for deleted mailboxes
Browse files Browse the repository at this point in the history
Ensure that we do not delete subscriptions entries for deleted mailboxes
without an explicit unsubscribe event (RFC 3501 Section 6.3.9).

If a new mailbox is created with the same name as previously deleted and
subscribed mailbox, the subscription data is overwritten to point to the
newly created mailbox.
  • Loading branch information
LBeernaertProton committed Dec 12, 2022
1 parent 0faa318 commit ce3d0a1
Show file tree
Hide file tree
Showing 30 changed files with 2,768 additions and 207 deletions.
97 changes: 97 additions & 0 deletions internal/db/ent/client.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions internal/db/ent/config.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions internal/db/ent/ent.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 13 additions & 0 deletions internal/db/ent/hook/hook.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 0 additions & 13 deletions internal/db/ent/mailbox.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 0 additions & 5 deletions internal/db/ent/mailbox/mailbox.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

21 changes: 0 additions & 21 deletions internal/db/ent/mailbox/where.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

29 changes: 0 additions & 29 deletions internal/db/ent/mailbox_create.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit ce3d0a1

Please sign in to comment.