Closed Bug 1930728 Opened 1 year ago Closed 1 year ago

accounts missing from TB desktop->mobile account export/import

Categories

(Thunderbird :: Account Manager, defect)

Thunderbird 128
defect

Tracking

(thunderbird_esr128 fixed, thunderbird135 wontfix, thunderbird136 fixed)

RESOLVED FIXED
137 Branch
Tracking Status
thunderbird_esr128 --- fixed
thunderbird135 --- wontfix
thunderbird136 --- fixed

People

(Reporter: pgnd, Assigned: mkmelin)

References

Details

Attachments

(1 external file)

Steps to reproduce:

i use TB, on desktop

	Name 	Thunderbird
	Version 	128.4.2esr
	Build ID 	20241105224936
	OS 	Linux 6.11.5-300.fc41.x86_64 #1 SMP PREEMPT_DYNAMIC Tue Oct 22 20:11:15 UTC 2024

i installed TB/beta 8.0b5 from PlayStore, on Android

in TB Desktop, I have 11 inbound/IMAP accounts

		userA@example1.com
		userA@example3.com
		userB@example2.net
		admin@int.example3.com
		postmaster@example1.com
		postmaster@example2.net
		myUser@externalMailService.com
		gmUser1@gmail.com
		gmUser2.test@gmail.com
		userC@example1.com
		userD.out@example2.net

where

example1.com
example3.com
example2.net
int.example3.com

are all 'my' owned domains, with mail hosted on the same, local server.

gmail.com & externalMailService.com are externally hosted services.

i want to import all those accounts into TB/Mobile.

@

	Settings -> Export for Mobile -> Export accounts to Thunderbird Mobile

displays only 6 accounts.

	Select which accounts to export:

		Email accounts
			userA@example3.com
			myUser@externalMailService.com
			gmUser1@gmail.com
			gmUser2.test@gmail.com
			userC@example1.com
			userD.out@example2.net

QR codes ARE generated -- there are two.

importing both stepwise into TB/Mobile completes without any obvious error.
those 6 accounts are correctly imported, and seem to function as expected. as far as i've checked, anyway.

the missing accounts are in the SAME DOMAINS, on the same server(s), and similarly configured, as others that ARE offered for export.

the issue is:

those other 5 accounts aren't being presented/available for export.

the missing accounts can be added manually.
this issue reproduces -- with obviously different accounts -- for (so far) 4 different users+TBDesktopInstances+AndroidDevices.

the closest found issue match @ TB/mobile was,

"QR Code includes not all accounts #8515"
https://github.com/thunderbird/thunderbird-android/issues/8515

doesn't address the issue here.

i opened

"accounts missing from TB desktop->mobile account export/import #8554"
https://github.com/thunderbird/thunderbird-android/issues/8554#event-15269014488

; it was immediately "Closed as not planned", and redirected here to bugs@TB

closest found issue match @ TB/desktop is

"export to mobile" fails to generate QR code for 2 byte wide unicode characters"
https://bugzilla.mozilla.org/show_bug.cgi?id=1928114

which doesn't address the issue either. and was, in any case, closed.

Actual results:

failed to export/import all accounts from TB Desktop

Expected results:

successfully export/import all accounts from TB Desktop

(In reply to pgnd from comment #0)

the issue is:
those other 5 accounts aren't being presented/available for export.

Likely they fall into a non-supported category. See https://support.mozilla.org/en-US/kb/thunderbird-android-import#w_not-seeing-all-your-email-accounts

(In reply to Magnus Melin [:mkmelin] from comment #1)

(In reply to pgnd from comment #0)

the issue is:
those other 5 accounts aren't being presented/available for export.

Likely they fall into a non-supported category. See https://support.mozilla.org/en-US/kb/thunderbird-android-import#w_not-seeing-all-your-email-accounts

no. they are in the same category as some that do appear in the available list.

as above, the missing accounts are in the SAME DOMAINS, on the same server(s), and similarly configured, as others that ARE offered for export.

	userA@example3.com  available
	userC@example1.com  available
	userA@example1.com  missing
	userA@example3.com  missing
	userB@example2.net  missing

Without further details not much we could do here.
The code to determine which to include is here: https://searchfox.org/comm-central/rev/bf763663ffe9230f0318644e7ba5865ea62e2dde/mail/modules/QRExport.sys.mjs#74-100 - if you're a developer you could debug it there

I had this issue, and the missing accounts all have the Outgoing Server (SMTP) left as "Use Default Server" in my profile. I've updated to choose the specific server record that is also identified as (Default) and they then show up for export...

I don't know the Thunderbird code in the slightest, but speculatively I wonder if "Use Default Server" is a special record type, and therefore doesn't match outgoingServer instanceof Ci.nsISmtpServer for the filtering.

That's indeed not working, thanks!

Assignee: nobody → mkmelin+mozilla
Status: UNCONFIRMED → ASSIGNED
Component: Untriaged → Account Manager
Ever confirmed: true

Also add more fine grained logging using pref mail.qrexport.loglevel.

See Also: → 1934323

Pushed by mkmelin@iki.fi:
https://hg.mozilla.org/comm-central/rev/c59b751d37a9
QRExport fails for "use default smtp server". r=freaktechnik

Status: ASSIGNED → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → 137 Branch

Comment on attachment 9463134 [details]
Bug 1930728 - QRExport fails for "use default smtp server". r=freaktechnik

[User impact if declined]

  • Export to mobile not working when "use default server" was selected.

[Is this code covered by automated tests?]

  • Yes

[Has the fix been verified in Daily? (or Beta for an ESR uplift?)]

  • Yes

[Needs manual test from QA?]

  • No

[Risk to taking this patch]

  • Low. It's only affecting a contained feature.

[String changes made/needed]

  • none
Attachment #9463134 - Flags: approval-comm-esr128?
Attachment #9463134 - Flags: approval-comm-beta?

Comment on attachment 9463134 [details]
Bug 1930728 - QRExport fails for "use default smtp server". r=freaktechnik

[Triage Comment]
Approved for beta

Attachment #9463134 - Flags: approval-comm-beta? → approval-comm-beta+

Comment on attachment 9463134 [details]
Bug 1930728 - QRExport fails for "use default smtp server". r=freaktechnik

[Triage Comment]
Approved for esr128

Attachment #9463134 - Flags: approval-comm-esr128? → approval-comm-esr128+
Duplicate of this bug: 1950730
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: