Mailspring icon indicating copy to clipboard operation
Mailspring copied to clipboard

Bug: Cannot add new IMAP account

Open ghost opened this issue 6 years ago • 14 comments

Describe the bug Program errors out when attempting to add a imap account.

Trace

user@computer:~$ mailspring --verbose
Gtk-Message: 14:51:01.004: Failed to load module "appmenu-gtk-module"
Running database migrations
App load time: 139ms

{"error":null}
Manual update check (updates.getmailspring.com/check/linux/x64/1.7.4-d54ff730/82ff93b8-28fa-4cd8-b810-8d19fc431ae2/stable) returned 204
{ TypeError: Cannot read property 'emailAddress' of undefined
    at _AccountStore.addAccount (file:///tmp/nylas-build/electron-packager/linux-x64/mailspring-linux-x64/resources/app/src/flux/stores/account-store.ts:223:18)
    at OnboardingStore._onFinishAndAddAccount (file:///tmp/nylas-build/electron-packager/linux-x64/mailspring-linux-x64/resources/app/internal_packages/onboarding/lib/onboarding-store.ts:129:20)
    at EventEmitter.eventHandler (/usr/share/mailspring/resources/app.asar/node_modules/reflux/src/PublisherMethods.js:36:22)
    at EventEmitter.emit (/usr/share/mailspring/resources/app.asar/node_modules/eventemitter3/index.js:72:35)
    at Function.trigger (/usr/share/mailspring/resources/app.asar/node_modules/reflux/src/PublisherMethods.js:52:26)
    at Object.functor [as finishAndAddAccount] (/usr/share/mailspring/resources/app.asar/node_modules/reflux/src/createAction.js:32:56)
    at onboarding_helpers_1.finalizeAndValidateAccount.then.validated (file:///tmp/nylas-build/electron-packager/linux-x64/mailspring-linux-x64/resources/app/internal_packages/onboarding/lib/decorators/create-page-for-form.tsx:170:29)
  message: 'Cannot read property \'emailAddress\' of undefined' } { pluginIds: [ 'onboarding' ] }

To Reproduce Steps to reproduce the behavior:

  1. Go to "Add Account"
  2. Click on "IMAP/SMTP"
  3. Click through menu (adding your account /w credentials)
  4. See trace (No new account gets added)

Expected behavior The email account gets added to the client and shows up in the most-left sidebar.

Setup: (please complete the following information):

  • OS: Pop!_OS (Ubuntu derivative)
  • OS Version: 19.10
  • Package method: .deb
  • Mailspring Version: ex: 1.7.4-d54ff730

Additional context SMTP host smtp.transip.email IMAP host: imap.transip.email

ghost avatar Mar 11 '20 14:03 ghost

message: 'Cannot read property \'emailAddress\' of undefined' Kind of makes it seem like the input validation has gone wrong in a newer release? Bug started after updating, though I can't say what the old version I had was.

ghost avatar Mar 11 '20 14:03 ghost

I think that is a duplicate #1841

sarovin avatar Mar 11 '20 18:03 sarovin

@sarovin Not exact same, I get no white screen for me it just disappears. But the root cause might be the same?

ghost avatar Mar 12 '20 08:03 ghost

@sarovin Not exact same, I get no white screen for me it just disappears. But the root cause might be the same?

Maybe

sarovin avatar Mar 12 '20 09:03 sarovin

i have a similar issue. it says the account was added like normal, but it isn't actually added. i tried doing it multiple times and restarting the application, but it still does the same thing. says account was added, but it was not actually added.

Miyazono1 avatar Mar 12 '20 10:03 Miyazono1

I have the same problem. Installing previous version (1.7.2) allows to skip this issue

mdz1998 avatar Mar 12 '20 16:03 mdz1998

Reporting the same issue. Office365 account couldn't be added on 1.7.4. @mdzierzecki 's suggestion to use 1.7.2 for now worked.

GitTiago avatar Mar 13 '20 09:03 GitTiago

IMAP account not added in 1.7.4. Would be nice to get a fix soon

PrijaveRazne avatar Mar 13 '20 15:03 PrijaveRazne

Temp solution. Install an older version located here.

825i avatar Mar 14 '20 17:03 825i

@pythonInRelay thanks for the link!

ghost avatar Mar 14 '20 17:03 ghost

I'm experiencing the same issue as @Miyazono1 with 1.7.4, 1.7.2, 1.7.1 ... I'll keep going down in versions hopefully one of them will work :)

Update: none worked, bug is still there probably from the beginning of time

working-name avatar Mar 15 '20 13:03 working-name

I have exactly the same bug... I have added new account, it says that the account is added, but nothing shows in Mailspring.. Version: 1.7.4-d54ff730, Windows 10

mensur avatar Mar 19 '20 16:03 mensur

Mismo error, al agregar cuenta Outlook sale en blanco. Es un asunto importante y prioritario a resolver y no se ven respuestas de Ben

Windows 10 Versión 1.7.4.

CarlosRebolledoA avatar Mar 20 '20 13:03 CarlosRebolledoA

Hey folks—thanks for filing this, this is a pretty serious bug. It was reported in a handful of other issues and we shipped a fix for it yesterday in version 1.7.5.

You can download the update from GitHub releases or from https://getmailspring.com/download, and the app should also auto-update if you have been using it. Sorry for the delay getting a fix out for this one, I appreciate everyone's help debugging and triaging the problem!

bengotow avatar Apr 17 '20 14:04 bengotow