thunderbird-android icon indicating copy to clipboard operation
thunderbird-android copied to clipboard

Create Archive Folder if None Exists

Open ryanleesipes opened this issue 1 year ago • 7 comments

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

ryanleesipes avatar Oct 22 '24 20:10 ryanleesipes

Related to #7062 ?

Tomaqa avatar Mar 21 '25 19:03 Tomaqa

Coming back to this, @kewisch I do think we should bring this inline with desktop.

ryanleesipes avatar Mar 27 '25 02:03 ryanleesipes

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.

kewisch avatar Mar 27 '25 13:03 kewisch

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.

kewisch avatar May 20 '25 10:05 kewisch

@rafaeltonholo by chance did you do this as part of #7062?

kewisch avatar Jul 02 '25 08:07 kewisch

@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:

  1. Add a new step in the "Setup Archive Folder" dialog to list the accounts associated with the selected messages.
  2. Once the user selects an account, proceed with creating the folder.
  3. Ensure that the dialog does not dismiss after the folder is created if more than one account requires an archive folder.
  4. Execute the archiving action only after the folder creation is complete.

rafaeltonholo avatar Jul 02 '25 10:07 rafaeltonholo

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.

ulab avatar Nov 16 '25 23:11 ulab