Problem to add a yahoo.com.br account

Problem

When I add a Yahoo! Mail account, Mailspring fails to sync it, cannot even populate the folders list. Existing accounts created in a previous version which worked (1.3 or so?) are not affected.

Context

This topic is a continuation of https://github.com/Foundry376/Mailspring/issues/1193.

The log file has this:

18032 [2019-10-17 15:28:20.932] [main] [info] Identity created at 1536074444 - using ID Schema 1
18032 [2019-10-17 15:28:20.933] [main] [info] ------------- Starting Sync (******@yahoo.com.br) ---------------
18032 [2019-10-17 15:28:20.950] [background] [info] Marking all folders as `busy`
18032 [2019-10-17 15:28:20.950] [background] [info] Syncing folder list...
18032 [2019-10-17 15:28:22.448] [metadata] [info] Metadata delta stream starting...
18032 [2019-10-17 15:28:23.485] [background] [critical]  *** Stack trace:
 ***   raise
 ***   abort
 ***   terminate
 ***   _is_exception_typeof
 ***   _is_exception_typeof
 ***   RtlInterlockedCompareExchange64
 ***   RtlInterlockedCompareExchange64
 ***   KiUserExceptionDispatcher
 ***   _CxxThrowException
 ***   _o_iswdigit
 ***

Email Provider

Yahoo! Mail

Setup

  • OS and Version: Windows 10 20H2 64 bits
  • Mailspring Version: 1.8.0
1 Like

Worth pointing out, this is for a yahoo.com.br account. @bengotow, would that possibly have an effect?

I just created a new account on Yahoo without country-specific domain (just @yahoo.com). Added to Mailspring and it worked. So, it appears that the problem is related to country-specific domains.

1 Like

That makes me suspect whether there are some hardcoded email settings for Yahoo that don’t understand country-specific domains.

Thanks for the diagnostic help! Hopefully we can get this resolved soon

I had the code up, so I went ahead and added the yahoo.com.br configuration details, which were indeed missing. I need to confirm this worked. Can you help with that, @josiasmat?

  1. You’ll be testing my my vivabrasil branch: GitHub - Foundry376/Mailspring at vivabrasil.
  2. You will need to follow these instructions: Mailspring/CONTRIBUTING.md at 953e64974e512f3012bbb9f3bddc3fca246b58bd · Foundry376/Mailspring · GitHub
  3. Comment here with whether this fixed worked or not: Add support for Yahoo! Brasil by CodeMouse92 · Pull Request #2272 · Foundry376/Mailspring · GitHub

I know it’s a bit of hassle, but helping us out by testing the fix will ensure that other Yahoo! Brasil users can enjoy Mailspring!

Hi @CodeMouse92.

I’m not a developer, nor I have experience with compiling code, but I tried to follow the instructions at CONTRIBUTING.md. First tried on Windows, but it failed at the install step. Next I tried on Linux; installed all dependencies and compiled. But Mailspring doesn’t start, showing this message: '/home/ibvm/mailspring/app/internal_packages/onboarding/lib/mailspring-provider-settings.json: Unexpected token b in JSON at position 136153' } { url: 'internal/modules/cjs/loader.js', line: 715, column: 5, pluginIds: [ 'onboarding' ] }. Full command output attached.

Sorry for not being able to help. But if you are willing to give me some assistance with this, I can try again.

Cannot upload a txt file, so here is the full output:

ibvm@ibvm:~/mailspring$ npm start

> mailspring-root@0.0.1 start /home/ibvm/mailspring
> electron ./app --enable-logging --dev

Running database migrations
App load time: 341ms

{"error":null}
[6625:0207/184352.411068:ERROR:gpu_process_transport_factory.cc(1017)] Lost UI shared context.
[6674:0207/184352.468659:ERROR:command_buffer_proxy_impl.cc(111)] ContextResult::kFatalFailure: Shared memory region is not valid
Manual update check (updates.getmailspring.com/check/linux/x64/1.8.0-COMMIT_INSERTED_DURING_PACKAGING/anonymous/stable) returned 204
[6625:0207/184353.355341:INFO:CONSOLE(18870)] "%cDownload the React DevTools for a better development experience: https://fb.me/react-devtools
You might need to use a local HTTP server (instead of file://): https://fb.me/react-devtools-faq", source: /home/ibvm/mailspring/app/node_modules/react-dom/cjs/react-dom.development.js (18870)
[6625:0207/184353.355752:INFO:CONSOLE(18870)] "%cDownload the React DevTools for a better development experience: https://fb.me/react-devtools
You might need to use a local HTTP server (instead of file://): https://fb.me/react-devtools-faq", source: /home/ibvm/mailspring/app/node_modules/react-dom/cjs/react-dom.development.js (18870)
[6625:0207/184353.404474:INFO:CONSOLE(16)] "Window load time: 841ms", source: file:///home/ibvm/mailspring/app/static/index.js (16)
[6625:0207/184353.422885:INFO:CONSOLE(16)] "Window load time: 838ms", source: file:///home/ibvm/mailspring/app/static/index.js (16)
{ SyntaxError: /home/ibvm/mailspring/app/internal_packages/onboarding/lib/mailspring-provider-settings.json: Unexpected token b in JSON at position 136153
    at JSON.parse (<anonymous>)
    at Object.Module._extensions..json (internal/modules/cjs/loader.js:712:27)
    at Module.load (internal/modules/cjs/loader.js:602:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:541:12)
    at Function.Module._load (internal/modules/cjs/loader.js:533:3)
    at Module.require (internal/modules/cjs/loader.js:640:17)
    at require (internal/modules/cjs/helpers.js:20:18)
    at Object.<anonymous> (file:///home/ibvm/mailspring/app/internal_packages/onboarding/lib/onboarding-helpers.ts:7:1)
    at Object.<anonymous> (file:///home/ibvm/mailspring/app/internal_packages/onboarding/lib/onboarding-helpers.ts:351:2)
    at Module._compile (internal/modules/cjs/loader.js:693:30)
    at Object.value [as .ts] (/home/ibvm/mailspring/app/src/compile-cache.js:145:21)
    at Module.load (internal/modules/cjs/loader.js:602:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:541:12)
    at Function.Module._load (internal/modules/cjs/loader.js:533:3)
    at Module.require (internal/modules/cjs/loader.js:640:17)
    at require (internal/modules/cjs/helpers.js:20:18)
    at Object.<anonymous> (file:///home/ibvm/mailspring/app/internal_packages/onboarding/lib/decorators/create-page-for-form.tsx:8:1)
    at Object.<anonymous> (file:///home/ibvm/mailspring/app/internal_packages/onboarding/lib/decorators/create-page-for-form.tsx:338:34)
    at Module._compile (internal/modules/cjs/loader.js:693:30)
    at Object.value [as .tsx] (/home/ibvm/mailspring/app/src/compile-cache.js:145:21)
    at Module.load (internal/modules/cjs/loader.js:602:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:541:12)
    at Function.Module._load (internal/modules/cjs/loader.js:533:3)
    at Module.require (internal/modules/cjs/loader.js:640:17)
    at require (internal/modules/cjs/helpers.js:20:18)
    at Object.<anonymous> (file:///home/ibvm/mailspring/app/internal_packages/onboarding/lib/page-account-settings.tsx:5:1)
    at Object.<anonymous> (file:///home/ibvm/mailspring/app/internal_packages/onboarding/lib/page-account-settings.tsx:99:60)
    at Module._compile (internal/modules/cjs/loader.js:693:30)
    at Object.value [as .tsx] (/home/ibvm/mailspring/app/src/compile-cache.js:145:21)
    at Module.load (internal/modules/cjs/loader.js:602:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:541:12)
    at Function.Module._load (internal/modules/cjs/loader.js:533:3)
    at Module.require (internal/modules/cjs/loader.js:640:17)
    at require (internal/modules/cjs/helpers.js:20:18)
    at Object.<anonymous> (file:///home/ibvm/mailspring/app/internal_packages/onboarding/lib/onboarding-root.tsx:11:1)
    at Object.<anonymous> (file:///home/ibvm/mailspring/app/internal_packages/onboarding/lib/onboarding-root.tsx:41:36)
    at Module._compile (internal/modules/cjs/loader.js:693:30)
    at Object.value [as .tsx] (/home/ibvm/mailspring/app/src/compile-cache.js:145:21)
    at Module.load (internal/modules/cjs/loader.js:602:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:541:12)
    at Function.Module._load (internal/modules/cjs/loader.js:533:3)
    at Module.require (internal/modules/cjs/loader.js:640:17)
    at require (internal/modules/cjs/helpers.js:20:18)
    at Object.<anonymous> (file:///home/ibvm/mailspring/app/internal_packages/onboarding/lib/main.ts:2:1)
    at Object.<anonymous> (file:///home/ibvm/mailspring/app/internal_packages/onboarding/lib/main.ts:32:31)
    at Module._compile (internal/modules/cjs/loader.js:693:30)
    at Object.value [as .ts] (/home/ibvm/mailspring/app/src/compile-cache.js:145:21)
    at Module.load (internal/modules/cjs/loader.js:602:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:541:12)
    at Function.Module._load (internal/modules/cjs/loader.js:533:3)
    at Module.require (internal/modules/cjs/loader.js:640:17)
    at require (internal/modules/cjs/helpers.js:20:18)
    at Package.activate (file:///home/ibvm/mailspring/app/src/package.ts:46:22)
    at PackageManager.activatePackage (file:///home/ibvm/mailspring/app/src/package-manager.ts:109:9)
    at setTimeout (file:///home/ibvm/mailspring/app/src/package-manager.ts:76:14)
  message:
   '/home/ibvm/mailspring/app/internal_packages/onboarding/lib/mailspring-provider-settings.json: Unexpected token b in JSON at position 136153' } { url: 'internal/modules/cjs/loader.js',
  line: 715,
  column: 5,
  pluginIds: [ 'onboarding' ] }
[6625:0207/184356.002248:INFO:CONSOLE(101)] "SyntaxError: /home/ibvm/mailspring/app/internal_packages/onboarding/lib/mailspring-provider-settings.json: Unexpected token b in JSON at position 136153", source: /home/ibvm/mailspring/app/src/error-logger.js (101)
[6625:0207/184356.002365:INFO:CONSOLE(715)] "Uncaught SyntaxError: /home/ibvm/mailspring/app/internal_packages/onboarding/lib/mailspring-provider-settings.json: Unexpected token b in JSON at position 136153", source: internal/modules/cjs/loader.js (715)
[6625:0207/184356.230769:VERBOSE1:CONSOLE(7931)] "Main._createAppUI: 19.974853515625ms", source: chrome-devtools://devtools/bundled/shell.js (7931)
[6625:0207/184356.252189:VERBOSE1:CONSOLE(7931)] "Main._showAppUI: 20.73388671875ms", source: chrome-devtools://devtools/bundled/shell.js (7931)
[6625:0207/184356.293373:VERBOSE1:CONSOLE(7931)] "Main._initializeTarget: 10.826904296875ms", source: chrome-devtools://devtools/bundled/shell.js (7931)
[6625:0207/184356.301303:WARNING:CONSOLE(170)] "%cElectron Security Warning (Insecure Content-Security-Policy)", source: /home/ibvm/mailspring/node_modules/electron/dist/resources/electron.asar/renderer/security-warnings.js (170)
[6625:0207/184356.570028:VERBOSE1:CONSOLE(7931)] "Main._lateInitialization: 0.823974609375ms", source: chrome-devtools://devtools/bundled/shell.js (7931)

Wow! Thanks for the help! Good news…you did nothing wrong. You found a problem with my changes. :smiley:

I also accidentally put two unrelated sets of changes into one PR. Eeeeeek!

Stand by, I’ll fix this tomorrow, and I’ll ping you when it’s ready to test again. Windows is fine; the error was mine.

Ack! Sorry I took so long to get back to this, @josiasmat. There was indeed a typo. If you could try this again, fresh, it should work now.

Please also see Ben’s comment on the PR: Add support for Yahoo! Brasil by CodeMouse92 · Pull Request #2272 · Foundry376/Mailspring · GitHub

You’re welcome to comment directly there.

Hi @CodeMouse92,

It compiled and ran successfully now. But I could not add the Yahoo! Brasil account. After looking at the PR, I think the server should be the same as for the @yahoo.com emails: imap.mail.yahoo.com and smtp.mail.yahoo.com (without .br). And, of course, it is .com, not .co.

Thanks in advance.

What’s weird is, if it was supposed to be imap.mail.yahoo.com and smtp.mail.yahoo.com, then it should have already been syncing. That’s what it was before.

And yet, yep, apparently so?

So, something else is being spooky. Back to the drawing board?

@CodeMouse92, I tried again, now manually adding a IMAP account, using the correct servers (without .br), and it worked perfectly!

:hushed: Uhm, okay, cool…

Maybe yahoo.com.br was just having a bad day? Glad it’s working.

Is adding it via the Yahoo workflow working now too? (If it’s not, then this is spooky. :ghost:)

No, to be clear, I used the imap.mail.yahoo.com and smtp.mail.yahoo.com servers, without .br. This was using the vivabrasil branch. On the current stable version (1.8.0), neither the Yahoo workflow nor the manual IMAP/SMTP workflow work.

Oh… I think I found a new fact…

When I added the account, it was the first account I added, in other words, it was a clean install (since I used the version I compiled from the vivabrasil branch). Now, I tried adding a second Yahoo account. This one failed.

So, it appears that the problem only occurs when adding a Yahoo.com.br account after another account was already added.

The funny thing is that it only happens with a @yahoo.com.br account.

I know some minor bugfixes were made for the upcoming 1.8.1, which vivabrasil is incidentally reflecting. None of my changes could be affecting anything, besides via the Yahoo workflow.

This is weird times a million.