Closed Bug 1230498 Opened 10 years ago Closed 1 year ago

Archive in subfolder of inbox moves message to Archive/ instead of subfolder of Archive

Categories

(Thunderbird :: Folder and Message Lists, defect)

38 Branch
x86_64
Linux
defect

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 697706

People

(Reporter: azrdev, Unassigned)

Details

User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:42.0) Gecko/20100101 Firefox/42.0 Build ID: 20151110142142 Steps to reproduce: Select an IMAP account. Configure Message Archiving, activate "keep original folder structure" Create a subfolder of INBOX, e.g. INBOX/urgent Select a mail in that folder, archive it. Actual results: The message is moved to Archive Expected results: The message is moved to Archive/urgent Note: If you have a folder "urgent" in the toplevel (next to INBOX), this archives to Archive/urgent. I propose to make them use the same archive target. If this is not approved, we could instead create Archive/INBOX/urgent. However, we would then have to decide if mails from the INBOX were archived to Archive/ (like now), leaving Archive/INBOX empty, or to Archive/INBOX, leaving Archive/ empty, which is probably ugly for people not using folders other than INBOX.

in TB 78, this has been resolved.

Thunderbird 91.3.2 (64-bit)
Option "keep original folder structure" don't respect INBOX folder.
If i have messages in two IMAP folders:

\INBOX\Subfolder1
\Private\Subfolder2

and archive with "keep original folder structure" option activated,
then messages
from \INBOX\Subfolder1 saved to Archive\Subfolder1
from \Private\Subfolder2 saved to Archive\Private\Subfolder2

Code in file modules\MessageArchiver.jsm remove INBOX from archive structure.

For version Thunderbird 91.3.2 (64-bit),
archive: omni.ja
file: modules\MessageArchiver.jsm
possible code location: line 252

  while (folder != rootFolder && folder != inboxFolder) {
    folderNames.unshift(folder.name);
    folder = folder.parent;
  }

What the reason to process inboxFolder other than any folders?
This turns "keep original folder structure" to "keep original folder structure, EXCLUDE INBOX" :(
User don't get expected structure.

Severity: normal → S3

confirmed by klaus and glukout39 in comment #1 and comment #2

Status: UNCONFIRMED → NEW
Component: Untriaged → Folder and Message Lists
Ever confirmed: true
OS: Unspecified → Linux
Hardware: Unspecified → x86_64

@ azrdev (reporter): Thanks for your report.
This has been fixed in bug 697706 and works for me in TB115.
Please open a new bug in case you are still affected in a current Thunderbird version.

Status: NEW → RESOLVED
Closed: 1 year ago
Duplicate of bug: 697706
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.