-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
feat: remove gmail prefix in folder structure #9213
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
Conversation
shamim-emon
commented
May 24, 2025
- Fixes Special case Gmail and hide [Gmail] / [Google Mail] in the folder structure #9134
9d74c82
to
8a2759c
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM thank you!
Is this something we could rather change in the folder modeling code to just skip the [Gmail] folder completely, rather than just formatting away the name? Also note that sometimes the folder is called [Google Mail], and we should only be doing this on gmail based accounts. |
Its my (admittedly imperfect) understanding that the first section of code is doing the filtering out? Clearly it would need some additional robustness if the folder has alternate names |
c999e62
to
d1b1a34
Compare
Thank you for the update! While reviewing this again and thinking further about the problem, I think this is heading in the right direction but is starting with a fundamental gap. Right now this (and other current filtering ideas) is happening on the UI layer. Your fix would have the app attempting to update the database every time the |
6a7a8cf
to
9861c17
Compare
@asoucar with the latest approach I'm doing following:
Please let me know what do you think of this approach? Is it alright and/or anything else needed? |
Thanks @shamim-emon ! I think this is 90% of the way there. As it stands right now I believe this will query all db folders, whether or not it is a Gmail account. For efficiency we should only do the folder filtering for a gmail account. But otherwise I think this is a solid solution |
4f4e651
to
5f4fd3a
Compare
legacy/storage/src/main/java/com/fsck/k9/storage/messages/K9MessageStoreFactory.kt
Show resolved
Hide resolved
5f4fd3a
to
c4a6f5f
Compare
legacy/storage/src/main/java/com/fsck/k9/storage/messages/K9MessageStoreFactory.kt
Show resolved
Hide resolved
c4a6f5f
to
2bb1d40
Compare
2bb1d40
to
fee8797
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank your work on this!