imapflow 1.0.124 → 1.0.125
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/imap-flow.js +2 -2
- package/package.json +1 -1
package/lib/imap-flow.js
CHANGED
|
@@ -978,7 +978,7 @@ class ImapFlow extends EventEmitter {
|
|
|
978
978
|
|
|
979
979
|
if (this.capabilities) {
|
|
980
980
|
for (let [capa] of this.capabilities) {
|
|
981
|
-
if (/^AUTH=/i.test(capa)) {
|
|
981
|
+
if (/^AUTH=/i.test(capa) && !this.authCapabilities.has(capa.toUpperCase())) {
|
|
982
982
|
this.authCapabilities.set(capa.toUpperCase(), false);
|
|
983
983
|
}
|
|
984
984
|
}
|
|
@@ -995,7 +995,7 @@ class ImapFlow extends EventEmitter {
|
|
|
995
995
|
|
|
996
996
|
if (this.capabilities) {
|
|
997
997
|
for (let [capa] of this.capabilities) {
|
|
998
|
-
if (/^AUTH=/i.test(capa)) {
|
|
998
|
+
if (/^AUTH=/i.test(capa) && !this.authCapabilities.has(capa.toUpperCase())) {
|
|
999
999
|
this.authCapabilities.set(capa.toUpperCase(), false);
|
|
1000
1000
|
}
|
|
1001
1001
|
}
|