Closed Bug 1750880 Opened 2 years ago Closed 2 years ago

Cannot import from Thunderbird release into beta (when server directory outside of the profile)

Categories

(Thunderbird :: Migration, defect)

Thunderbird 97
defect

Tracking

(thunderbird_esr91 unaffected, thunderbird97 wontfix)

RESOLVED FIXED
98 Branch
Tracking Status
thunderbird_esr91 --- unaffected
thunderbird97 --- wontfix

People

(Reporter: 1justinpeter, Assigned: rnons)

References

Details

Attachments

(2 files)

(Not sure if this should go here or in MailNews Core:Import; apologies if it's in the wrong one.)

When attempting to import my profile from Thunderbird release into beta, I receive the error "Component returned failure code: 0x80520001 (NS_ERROR_FILE_UNRECOGNIZED_PATH) [nslFile.append]". (This text is not copiable, which is a huge pain.) It appears that at least part of my profile did import successfully; I see all (or at least most?) of the folders, but I can't see the mail in them, and the layout, etc. are different.

Interestingly, about the fourth time I started Thunderbird, it asked me for passwords for my email accounts.

STR:

  1. Start Thunderbird
  2. In the main screen (which may be for an account), click "Import".
  3. Import Everything
  4. Thunderbird (profile folder)
  5. Find the folder (default-release)

Please let me know if there is anything I can do to help.

Thanks for reporting. I'm currently writing a new importing page in bug 1720042. Can you open the Config Editor, set mail.import.in_new_tab to true, then click the "Import" button and try importing again?

This text is not copiable, which is a huge pain

Were you seeing the error in the console tab?

Were you seeing the error in the console tab?

No, that text appears as the contents of the "import wizard" box (the same one that says "Import Settings and Mail Folders"; the one that pops up after the first time you press next when importing).

mail.import.in_new_tab

That results in an (also not copiable) "Import failed unexpectedly, more information may be available in the Error Console." The console (where, for some reason, I did not think to look before you mentioned it) has the following:

Uncaught (in promise)

Exception { name: "NS_ERROR_FILE_UNRECOGNIZED_PATH", message: "Component returned failure code: 0x80520001 (NS_ERROR_FILE_UNRECOGNIZED_PATH) [nsIFile.append]", result: 2152857601, filename: "resource:///modules/ThunderbirdProfileImporter.jsm", lineNumber: 561, columnNumber: 0, data: null, stack: "_importMailMessages@resource:///modules/ThunderbirdProfileImporter.jsm:561:19\n_importServersAndAccounts@resource:///modules/ThunderbirdProfileImporter.jsm:277:16\n", location: XPCWrappedNative_NoHelper }

ThunderbirdProfileImporter.jsm:561

Thanks, the error happens at https://searchfox.org/comm-central/rev/ebb466e874faceafe7deeb9db812e426efae90f5/mailnews/import/modules/ThunderbirdProfileImporter.jsm#561

Please open the Config Editor, search for directory-rel, tell us if there is anything suspicious, or just upload a screenshot here.

I'm not sure what the syntax is supposed to be, but there are potentially a few things here that could throw it for a loop.

Attached image img.png

This is interesting, your server2 has a directory outside of the Profile Directory, I didn't know it's possible. Do you know how it happened? Maybe some extensions?

I will try to make a fix later.

Assignee: nobody → remotenonsense

I did make local copies of a number of emails using an extension at some point, but it looks like the directory can be changed in account settings > local folders > local directory. (That said, I don't know for sure if "local folders" is just something that appears by default or if I - or the extension - had to do something to make it appear.)

Never mind, I find that there is a Local Directory setting in the Server Settings, that's good enough for me to fix this.

Summary: Cannot import from Thunderbird release into beta → Cannot import from Thunderbird release into beta (when server directory outside of the profile)

If .directory-rel is outside the ProfD, use .directory instead.

Depends on D136455.

Blocks: 1720042
Status: UNCONFIRMED → ASSIGNED
Ever confirmed: true
Target Milestone: --- → 98 Branch

Pushed by mkmelin@iki.fi:
https://hg.mozilla.org/comm-central/rev/bf70d7cd19eb
Fix importing from server directory outside of ProfD in ThunderbirdProfileImporter. r=darktrojan

Status: ASSIGNED → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: