Foundry376 / Mailspring

:love_letter: A beautiful, fast and fully open source mail client for Mac, Windows and Linux.
https://getmailspring.com/
GNU General Public License v3.0
15.52k stars 906 forks source link

Can't use Mailspring due to problem with Gmail-sync #368

Closed DmitryLoki closed 3 years ago

DmitryLoki commented 6 years ago
Are there any related issues?

https://github.com/Foundry376/Mailspring/issues/357 I think

What operating system are you using?

Ubuntu 16.10

What version of Mailspring are you using?

1.0.8

Bug?

Do you have any third-party plugins installed? If so, which ones?

Nope

Is the issue related to a specific email provider (Gmail, Exchange, etc.)?

Gmail

Two weeks ago I got infinitive "rebuild inbox index" and lost all chances to work with my emails. I tried to re-connect my Gmail by deleting all Mailspring config, but I've got Gmail sync error...

So.. I can't use Mailspring for two weeks... I hope this issue will be fixed soon.

Sincerely yours, pro-subscriber.

bengotow commented 6 years ago

Hey! Thanks for reporting this—can you elaborate on the messages you saw in Mailspring? What error is displayed in the app? This may be fixed by some recent improvements going into 1.0.9 tomorrow but it's hard to say without more detail. We're shipping some error reporting improvements that will make these things a lot easier to track down in 1.0.9 though.

DmitryLoki commented 6 years ago

So. That's what I got when I've tried to add Gmail account. screenshot from 2017-11-29 14-34-29

screenshot from 2017-11-29 14-35-20

screenshot from 2017-11-29 14-46-36

But it works perfectly when I add it via IMAP. If you need more info please ask.

bengotow commented 6 years ago

Hmm interesting—an error code 134 popped up in #353 as well. Glad to hear it works via IMAP/SMTP but that's pretty strange. Will see if I can reproduce this locally.

Also a fix in 1.0.9 should prevent the infinite "indexing your mailbox" issue from happening again. Previously the app retried pretty aggressively when it couldn't fetch certain messages for the search index, and it could cause it to crash over and over.

ronisbr commented 6 years ago

@DmitryLoki

Hi!

One question, by adding as IMAP, do you mean to configure the gmail account as a normal IMAP account?

lewisamarshall commented 6 years ago

Also experiencing this issue.

bengotow commented 6 years ago

Hey @DmitryLoki — are you still running up against this issue? The infinite re-indexing of mail should be fixed in 1.0.9 and 1.0.10.

@lewisamarshall could you elaborate on which part of the problem you're seeing? I think Error 134 is the code for an assertion failure, and it may be that you need to resolve the Password Management issue described here: https://foundry376.zendesk.com/hc/en-us/articles/115001875571--I-m-getting-a-Password-Management-Error

lewisamarshall commented 6 years ago

I'm seeing the same behavior from the console as well (see screenshot). I took a look at the password-management page; I have libsecret and gnome-keyring installed. Based on this, I think it's the same issue.

screenshot from 2017-12-11 23-00-52

oserban commented 6 years ago

I started having this issue with gmail accounts in 1.0.10. Wasn't a problem for previous versions.

SamuelMiller commented 6 years ago

I am having the same gmail syncing error with Mailspring Linuxmint XFCE 18.3 (Ubuntu 16.04 64bit core) with the app is installed via Snap. However, Mailspring is able to sync with gmail when I install it via Deb.

ziggy42 commented 6 years ago

Same here, Fedora 27, just installed 1.1.0

DmitryLoki commented 6 years ago

1.1.3 still has this bug

gcraenen commented 6 years ago

1.2.2 also.

tankgit commented 6 years ago

1.3.0 ubutnu 18.04, same

lansscar commented 6 years ago

macOS Mojave, same

AgentEric commented 6 years ago

OS: Linux Manjaro 1.5.1 exactly alike Whayt's the root cause? Gmail?

srpelissier commented 5 years ago

I have this GMail sync problem too in Manjaro since end November. So I removed the GMail account and tried to add it again to Mailspring, but that failed (I did not write it down but the error message was something like "Fetch failed")... Then I started Mailspring from the command line. After that I was able to add the GMail account as I expected it in the first place. Mailspring was then restarted as normal and seems to function as expected since, including sync.

victoru commented 5 years ago

I also ran into this issue and saw the error was because my hostname contained parentheses which caused smtp.gmail.com to reject the request due to invalid characters.

leychan commented 5 years ago

manjaro18.0.2,same

TomaszWaszczyk commented 5 years ago

The same

EddieEldridge commented 5 years ago

Still getting the same error in 1.6.1, Syncs for a while, able to retrieve emails etc. but then throws an error stating 'Encounterd an error while syncing" and continues to do this repeatably. I set up my account by logging in with the browser.

yitang commented 5 years ago

started to have this issue a couple of days ago.

EddieEldridge commented 5 years ago

This issue was resolved for me after a couple of days of resyncing repeatedly for a couple of days. Not sure what actually fixed it but just wanted to let people know there is hope :)

anandkumar89 commented 5 years ago

Similar issue - mailspring doesn't sync with gmail seamlessly. Sync is highly unpredictable. examples -

kngmat004 commented 5 years ago

same issue still present on version 1.7.2

andsilver commented 4 years ago

me too

BlueManCZ commented 4 years ago

I cannot add my gmail account. After successful authentication in browser I get this error message.

Connection Error - Unable to connect to the server / port you provided. (SMTP)

Snímek z 2020-02-24 10-56-02

Is there something wrong with the default gmail configuration that is used to establish a connection?

Mailspring 1.7.2 on Gentoo Linux

BlueManCZ commented 4 years ago

You have to be kidding me. Building on my previous post, I tried connect to my Gmail account via Gmail IMAP instead of Google OAuth and I got a more detailed log file, what is actually happening here. There was a line in SMTP section:

501-5.5.4 HELO/EHLO argument "Z170-D3H Gentoo" invalid, closing connection.

"Z170-D3H Gentoo" is name of my host. So I removed whitespace from my hostname and voila, now both (Gmail IMAP and Google OAuth) works perfectly. I'm going to open new issue for this so that developers can look at it.

Snopoff commented 4 years ago

Yup, got same problem. Everything was okay back then, now it doesn't sync with gmail and throws 134 error as well

CodeMouse92 commented 3 years ago

Duplicate of #397

CodeMouse92 commented 3 years ago

We are in the process of migrating issues to Discourse, which can better facilitate discussion and discovery, and so GitHub Issues can focus on issues that are confirmed and slated for resolution in the near term. Learn more about the changes here.

As part of this, we've migrated this issue to Discourse:

https://community.getmailspring.com/t/gmail-mailsync-134/422

Please consider joining that community and continuing the discussion there!

We're closing and locking the issue here as part of this migration. Rest assured, this doesn't mean the issue is being discarded or ignored.

We hope to see you on Discourse soon!

-The Mailspring Team