Comments (11)
Forgot to mention that I am using:
node v0.6.15 and with latest node-imap
from node-imap.
I've published v0.3.0 now, that version should fix this problem.
from node-imap.
I updated to v0.3.0 but still having the same issue.
It works beautifully with other non-gmail imap server...
from node-imap.
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.
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.
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.
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 andsecure
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.
Same here, AUTH=PLAIN
is not avalaible with Google Apps Gmail (free).
from node-imap.
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.
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.
This is now properly fixed in node-imap v0.3.1 and is available on npm.
from node-imap.
Related Issues (20)
- German Umlauts or Emoji problem
- js_stream_socket error
- Recent and New not working for outlook account HOT 2
- Invalid credentials (Failure) - Gmail HOT 12
- ECONNREFUSED error while trying to use imap HOT 1
- Search by multiple Message-Id's HOT 1
- Twistlock finds semver CVE-2022-25883 (M)
- Upgrade to Node 18 breaks imap
- Fetch email during antivirus scanning fetches empty body HOT 2
- Examine unsafe login HOT 3
- Support for search criteria OLDER e YOUNGER
- Search getting stuck when new mail recieved
- Filter on history
- does not seem to work with bun HOT 3
- The note view doesn't update when the note has been shared HOT 1
- Issue on event "mail" with outlook only
- Microsoft Outlook 2019 ERROR MESSAGE 503 BAD SEQUESCE OF COMMANDS HOT 1
- Connection.js:191:10 Cannot read properties of undefined (reading 'fullcmd')
- Connection problems when using node-imap against a dual-stack server from a single-stack client. HOT 3
- Issue with IMAP SINCE βSearchβ Timezone Handling HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from node-imap.