GithubHelp home page GithubHelp logo

Comments (11)

freshmatrix avatar freshmatrix commented on September 18, 2024

Forgot to mention that I am using:
node v0.6.15 and with latest node-imap

from node-imap.

mscdex avatar mscdex commented on September 18, 2024

I've published v0.3.0 now, that version should fix this problem.

from node-imap.

freshmatrix avatar freshmatrix commented on September 18, 2024

I updated to v0.3.0 but still having the same issue.

It works beautifully with other non-gmail imap server...

from node-imap.

mscdex avatar mscdex commented on September 18, 2024

Hmmm... try this: add the debug option to the connection config and set it to a function like console.error.
Then create a gist of the debug output, after censoring the credentials.

from node-imap.

freshmatrix avatar freshmatrix commented on September 18, 2024

Looks like capabilities from imap.gmail.com does not contain AUTH=PLAIN
I am using Google biz app's gmail, though regular gmail should be the same..

console.log(this.capabilities) prints:

  [ 'IMAP4REV1',
    'UNSELECT',
    'IDLE',
    'NAMESPACE',
    'QUOTA',
    'ID',
    'XLIST',
    'CHILDREN',
    'X-GM-EXT-1',
    'XYZZY',
    'SASL-IR',
    'AUTH=XOAUTH' ]

from node-imap.

mscdex avatar mscdex commented on September 18, 2024

Hmm, I'm not sure I'm familiar with that product. As far as gmail goes, I only test "plain" and "Google Apps" (the free one) gmail. With both, AUTH=PLAIN and AUTH=XOAUTH are available for authentication.

Do you have the port set to 993 and secure to true in the connection config? If so, I guess you'll have to use oauth to login to your account and/or contact google about the lack of AUTH=PLAIN support. I don't think there is anything else I can do as the only time I've heard of AUTH=PLAIN not being available (at least on gmail) is if you were not connecting securely via SSL.

from node-imap.

freshmatrix avatar freshmatrix commented on September 18, 2024

I suppose it is possible they disabled auth-plain for biz gmail (though free).

I will dig deeper and find more info.

Thanks!

On 2012-04-19, at 6:02 PM, Brian [email protected] wrote:

Hmm, I'm not sure I'm familiar with that product. As far as gmail goes, I only test "plain" and "Google Apps" (the free one) gmail. With both, AUTH=PLAIN and AUTH=XOAUTH are available for authentication.

Do you have the port set to 993 and secure to true in the connection config? If so, I guess you'll have to use oauth to login to your account and/or contact google about the lack of AUTH=PLAIN support. I don't think there is anything else I can do as the only time I've heard of AUTH=PLAIN not being available (at least on gmail) is if you were not connecting securely via SSL.


Reply to this email directly or view it on GitHub:
#55 (comment)

from node-imap.

bpierre avatar bpierre commented on September 18, 2024

Same here, AUTH=PLAIN is not avalaible with Google Apps Gmail (free).

from node-imap.

mscdex avatar mscdex commented on September 18, 2024

Confirmed, this must have been a recent change on their end. :\

EDIT: It's gone from free (non-google apps) gmail also!

EDIT2: Weird.... it seems plain-text login still works, they just don't advertise the capability anymore. >:\

from node-imap.

mscdex avatar mscdex commented on September 18, 2024

For those affected, please grab the latest copy of the master branch. I've just applied a kludge that should work for gmail (at least until they get their act together?).

Additionally I've pinged Google about this, we'll see if/how they respond to the matter.

EDIT: So, evidently due to the wording ("SHOULD" instead of "MUST") in rfc3501, IMAP servers are not required to advertise all authentication methods they support (pretty silly IMHO) in their capabilities listing. I've yet to see an IMAP server that hides this kind of information (besides Google now), especially the plaintext auth capability, which most IMAP servers use for authentication. However, I'll write up a more proper fix shortly to always try plain-text auth unless oauth is being used.

from node-imap.

mscdex avatar mscdex commented on September 18, 2024

This is now properly fixed in node-imap v0.3.1 and is available on npm.

from node-imap.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.