imapflow 1.0.78 → 1.0.79

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/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # CHANGELOG
2
2
 
3
+ - 1.0.79 - 2021-12-29
4
+
5
+ - Added property `greeting` that contains that first response from the server
6
+
3
7
  - 1.0.78 - 2021-11-28
4
8
 
5
9
  - Proxy support. Use configuration options `proxy: "url"` to use proxies
package/README.md CHANGED
@@ -2,13 +2,13 @@
2
2
 
3
3
  ---
4
4
 
5
- > Managing IMAP connections is cool but if you are only looking for an easy way to integrate email accounts, then ImapFlow was built for [EmailEngine Email API](https://emailengine.app/). It's a self hosted software that converts all IMAP accounts to easy to use REST interfaces.
5
+ > Managing IMAP connections is cool, but if you are only looking for an easy way to integrate email accounts, then ImapFlow was built for [EmailEngine Email API](https://emailengine.app/). It's a self-hosted software that converts all IMAP accounts to easy-to-use REST interfaces.
6
6
 
7
7
  ---
8
8
 
9
- The focus for ImapFlow is to provide easy to use API over IMAP. Using ImapFlow does not expect knowledge about specific IMAP details, general understanding is good enough.
9
+ The focus for ImapFlow is to provide easy to use API over IMAP. Using ImapFlow does not expect knowledge about specific IMAP details. A general understanding is good enough.
10
10
 
11
- IMAP extensions are handled in the background, so for example you can always request `labels` value from a {@link FetchQueryObject|fetch()} call but if the IMAP server does not support `X-GM-EXT1` extension, then `labels` value is not included in the response.
11
+ IMAP extensions are handled in the background, so for example, you can always request `labels` value from a {@link FetchQueryObject|fetch()} call, but if the IMAP server does not support `X-GM-EXT1` extension, then `labels` value is not included in the response.
12
12
 
13
13
  ## Source
14
14
 
package/lib/imap-flow.js CHANGED
@@ -808,7 +808,13 @@ class ImapFlow extends EventEmitter {
808
808
  return false;
809
809
  }
810
810
 
811
- async initialOK() {
811
+ async initialOK(message) {
812
+ this.greeting = (message.attributes || [])
813
+ .filter(entry => entry.type === 'TEXT')
814
+ .map(entry => entry.value)
815
+ .filter(entry => entry)
816
+ .join('');
817
+
812
818
  clearTimeout(this.greetingTimeout);
813
819
  this.untaggedHandlers.OK = null;
814
820
  this.untaggedHandlers.PREAUTH = null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "imapflow",
3
- "version": "1.0.78",
3
+ "version": "1.0.79",
4
4
  "description": "IMAP Client for Node",
5
5
  "main": "./lib/imap-flow.js",
6
6
  "scripts": {
@@ -26,13 +26,13 @@
26
26
  },
27
27
  "homepage": "https://imapflow.com/",
28
28
  "devDependencies": {
29
- "@babel/eslint-parser": "7.16.3",
30
- "@babel/eslint-plugin": "7.14.5",
29
+ "@babel/eslint-parser": "7.16.5",
30
+ "@babel/eslint-plugin": "7.16.5",
31
31
  "@babel/plugin-syntax-class-properties": "7.12.13",
32
- "@babel/preset-env": "7.16.4",
33
- "@types/node": "16.11.10",
32
+ "@babel/preset-env": "7.16.5",
33
+ "@types/node": "17.0.5",
34
34
  "braintree-jsdoc-template": "3.3.0",
35
- "eslint": "8.3.0",
35
+ "eslint": "8.5.0",
36
36
  "eslint-config-nodemailer": "1.2.0",
37
37
  "eslint-config-prettier": "8.3.0",
38
38
  "grunt": "1.4.1",
@@ -50,7 +50,7 @@
50
50
  "libqp": "1.1.0",
51
51
  "mailsplit": "5.3.1",
52
52
  "nodemailer": "6.7.2",
53
- "pino": "7.4.1",
53
+ "pino": "7.6.2",
54
54
  "socks": "2.6.1"
55
55
  }
56
56
  }