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.
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.
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?
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)
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.
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?
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.
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.