cypht
cypht copied to clipboard
Deleting an account messes up the list of folders in "Everything", and the special folders
I deleted an account (both SMTP and IMAP), and the my "Everything" section has some folders it didn't have before.
Looks like the deletion has shifted the folders as if they are using IDs that change.
1st challenge is to reproduce the bug:
- Add many IMAP and SMTP accounts
- Configure Combined Views https://github.com/jasonmunro/cypht-website/issues/25
- Delete an IMAP and SMTP account
- Check if Combined View has changed
There was an attempt to solve but was reverted because of unwanted side-effects: https://github.com/jasonmunro/cypht/pull/454
@henrique-borba I deleted an IMAP account, and I expected this would delete the associated folder. It looked like it worked because they were no longer listed. But later, when I re-added the IMAP account, the folders came back. So I interpret that they were not deleted but orphaned.
@henrique-borba https://github.com/jasonmunro/cypht/issues/380
@henrique-borba A good question for you here: https://github.com/jasonmunro/cypht/pull/591
So we should avoid re-using IDs for
- Servers (IMAP, JMAP, SMTP)
- Profiles
- Folders
What else?
Henrique is working to move everything to stable IDs: https://github.com/jasonmunro/cypht/pull/625
Solved for Cypht 2.0: https://github.com/cypht-org/cypht/pull/625