Create Archive Folder if None Exists
Checklist
- [X] I have used the search function to see if someone else has already submitted the same bug report.
- [X] I will describe the problem with as much detail as possible.
App
Thunderbird for Android
App version
8.0b4
Where did you get the app from?
Google Play
Android version
14
Device model
Samsung Galaxy S23
Steps to reproduce
Attempt to archive an email without an archive folder, It fails.
Expected behavior
Thunderbird desktop creates an archive folder when a message is archived - even if an archive folder doesn't exist. TB for Android should do the same.
Actual behavior
Currently Thunderbird for Android does not generate an archive folder.
Logs
No response
Related to #7062 ?
Coming back to this, @kewisch I do think we should bring this inline with desktop.
Sounds reasonable. I think we'll have to explore:
- Can we differentiate between no archive folder set because of explicit user choice, or because no decision made? I think yes, if the "Auto" setting is on for the archive folder.
- How well does this work for providers like Gmail that have special archive folders, and for the case where TfA might not have detected the archive folder correctly?
- Do we need to do anything special for localization? See also #6799
This probably isn't terribly complicated, I'll mark this as a good first bug.
We may be tackling this as part of https://github.com/thunderbird/thunderbird-android/issues/7062 . If someone wants to work on this please check in beforehand.
@rafaeltonholo by chance did you do this as part of #7062?
@rafaeltonholo by chance did you do this as part of #7062?
Currently, folder creation only occurs with a swipe gesture. To implement this functionality, the following steps are necessary:
- Add a new step in the "Setup Archive Folder" dialog to list the accounts associated with the selected messages.
- Once the user selects an account, proceed with creating the folder.
- Ensure that the dialog does not dismiss after the folder is created if more than one account requires an archive folder.
- Execute the archiving action only after the folder creation is complete.
The archive folders should also follow the style that is used on the desktop:
Archives/YYYY with YYYY being the year the email was sent.