nodemailer 4.6.5 → 4.7.0

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/.prettierrc.js ADDED
@@ -0,0 +1,5 @@
1
+ module.exports = {
2
+ printWidth: 160,
3
+ tabWidth: 4,
4
+ singleQuote: true
5
+ };
package/CHANGELOG.md CHANGED
@@ -1,273 +1,292 @@
1
1
  # CHANGELOG
2
2
 
3
+ ## 4.7.0 2018-11-19
4
+
5
+ - Cleaned up List-\* header generation
6
+ - Fixed 'full' return option for DSN (klaronix) [23b93a3b]
7
+ - Support promises `for mailcomposer.build()`
8
+
9
+ ## 4.6.8 2018-08-15
10
+
11
+ - Use first IP address from DNS resolution when using a proxy (Limbozz) [d4ca847c]
12
+ - Return raw email from SES transport (gabegorelick) [3aa08967]
13
+
14
+ ## 4.6.7 2018-06-15
15
+
16
+ - Added option `skipEncoding` to JSONTransport
17
+
18
+ ## 4.6.6 2018-06-10
19
+
20
+ - Fixes mime encoded-word compatibility issue with invalid clients like Zimbra
21
+
3
22
  ## 4.6.5 2018-05-23
4
23
 
5
- * Fixed broken DKIM stream in Node.js v10
6
- * Updated error messages for SMTP responses to not include a newline
24
+ - Fixed broken DKIM stream in Node.js v10
25
+ - Updated error messages for SMTP responses to not include a newline
7
26
 
8
27
  ## 4.6.4 2018-03-31
9
28
 
10
- * Readded logo author link to README that was accidentally removed a while ago
29
+ - Readded logo author link to README that was accidentally removed a while ago
11
30
 
12
31
  ## 4.6.3 2018-03-13
13
32
 
14
- * Removed unneeded dependency
33
+ - Removed unneeded dependency
15
34
 
16
35
  ## 4.6.2 2018-03-06
17
36
 
18
- * When redirecting URL calls then do not include original POST content
37
+ - When redirecting URL calls then do not include original POST content
19
38
 
20
39
  ## 4.6.1 2018-03-06
21
40
 
22
- * Fixed Smtp connection freezing, when trying to send after close / quit (twawszczak) [73d3911c]
41
+ - Fixed Smtp connection freezing, when trying to send after close / quit (twawszczak) [73d3911c]
23
42
 
24
43
  ## 4.6.0 2018-02-22
25
44
 
26
- * Support socks module v2 in addition to v1 [e228bcb2]
27
- * Fixed invalid promise return value when using createTestAccount [5524e627]
28
- * Allow using local addresses [8f6fa35f]
45
+ - Support socks module v2 in addition to v1 [e228bcb2]
46
+ - Fixed invalid promise return value when using createTestAccount [5524e627]
47
+ - Allow using local addresses [8f6fa35f]
29
48
 
30
49
  ## 4.5.0 2018-02-21
31
50
 
32
- * Added new message transport option `normalizeHeaderKey(key)=>normalizedKey` for custom header formatting
51
+ - Added new message transport option `normalizeHeaderKey(key)=>normalizedKey` for custom header formatting
33
52
 
34
53
  ## 4.4.2 2018-01-20
35
54
 
36
- * Added sponsors section to README
37
- * enclose encodeURIComponent in try..catch to handle invalid urls
55
+ - Added sponsors section to README
56
+ - enclose encodeURIComponent in try..catch to handle invalid urls
38
57
 
39
58
  ## 4.4.1 2017-12-08
40
59
 
41
- * Better handling of unexpectedly dropping connections
60
+ - Better handling of unexpectedly dropping connections
42
61
 
43
62
  ## 4.4.0 2017-11-10
44
63
 
45
- * Changed default behavior for attachment option contentTransferEncoding. If it is unset then base64 encoding is used for the attachment. If it is set to false then previous default applies (base64 for most, 7bit for text)
64
+ - Changed default behavior for attachment option contentTransferEncoding. If it is unset then base64 encoding is used for the attachment. If it is set to false then previous default applies (base64 for most, 7bit for text)
46
65
 
47
66
  ## 4.3.1 2017-10-25
48
67
 
49
- * Fixed a confict with Electron.js where timers do not have unref method
68
+ - Fixed a confict with Electron.js where timers do not have unref method
50
69
 
51
70
  ## 4.3.0 2017-10-23
52
71
 
53
- * Added new mail object method `mail.normalize(cb)` that should make creating HTTP API based transports much easier
72
+ - Added new mail object method `mail.normalize(cb)` that should make creating HTTP API based transports much easier
54
73
 
55
74
  ## 4.2.0 2017-10-13
56
75
 
57
- * Expose streamed messages size and timers in info response
76
+ - Expose streamed messages size and timers in info response
58
77
 
59
78
  ## v4.1.3 2017-10-06
60
79
 
61
- * Allow generating preview links without calling createTestAccount first
80
+ - Allow generating preview links without calling createTestAccount first
62
81
 
63
82
  ## v4.1.2 2017-10-03
64
83
 
65
- * No actual changes. Needed to push updated README to npmjs
84
+ - No actual changes. Needed to push updated README to npmjs
66
85
 
67
86
  ## v4.1.1 2017-09-25
68
87
 
69
- * Fixed JSONTransport attachment handling
88
+ - Fixed JSONTransport attachment handling
70
89
 
71
90
  ## v4.1.0 2017-08-28
72
91
 
73
- * Added new methods `createTestAccount` and `getTestMessageUrl` to use autogenerated email accounts from https://Ethereal.email
92
+ - Added new methods `createTestAccount` and `getTestMessageUrl` to use autogenerated email accounts from https://Ethereal.email
74
93
 
75
94
  ## v4.0.1 2017-04-13
76
95
 
77
- * Fixed issue with LMTP and STARTTLS
96
+ - Fixed issue with LMTP and STARTTLS
78
97
 
79
98
  ## v4.0.0 2017-04-06
80
99
 
81
- * License changed from EUPLv1.1 to MIT
100
+ - License changed from EUPLv1.1 to MIT
82
101
 
83
102
  ## v3.1.8 2017-03-21
84
103
 
85
- * Fixed invalid List-\* header generation
104
+ - Fixed invalid List-\* header generation
86
105
 
87
106
  ## v3.1.7 2017-03-14
88
107
 
89
- * Emit an error if STARTTLS ends with connection being closed
108
+ - Emit an error if STARTTLS ends with connection being closed
90
109
 
91
110
  ## v3.1.6 2017-03-14
92
111
 
93
- * Expose last server response for smtpConnection
112
+ - Expose last server response for smtpConnection
94
113
 
95
114
  ## v3.1.5 2017-03-08
96
115
 
97
- * Fixed SES transport, added missing `response` value
116
+ - Fixed SES transport, added missing `response` value
98
117
 
99
118
  ## v3.1.4 2017-02-26
100
119
 
101
- * Fixed DKIM calculation for empty body
102
- * Ensure linebreak after message content. This fixes DKIM signatures for non-multipart messages where input did not end with a newline
120
+ - Fixed DKIM calculation for empty body
121
+ - Ensure linebreak after message content. This fixes DKIM signatures for non-multipart messages where input did not end with a newline
103
122
 
104
123
  ## v3.1.3 2017-02-17
105
124
 
106
- * Fixed missing `transport.verify()` methods for SES transport
125
+ - Fixed missing `transport.verify()` methods for SES transport
107
126
 
108
127
  ## v3.1.2 2017-02-17
109
128
 
110
- * Added missing error handlers for Sendmail, SES and Stream transports. If a messages contained an invalid URL as attachment then these transports threw an uncatched error
129
+ - Added missing error handlers for Sendmail, SES and Stream transports. If a messages contained an invalid URL as attachment then these transports threw an uncatched error
111
130
 
112
131
  ## v3.1.1 2017-02-13
113
132
 
114
- * Fixed missing `transport.on('idle')` and `transport.isIdle()` methods for SES transports
133
+ - Fixed missing `transport.on('idle')` and `transport.isIdle()` methods for SES transports
115
134
 
116
135
  ## v3.1.0 2017-02-13
117
136
 
118
- * Added built-in transport for AWS SES. [Docs](http://localhost:1313/transports/ses/)
119
- * Updated stream transport to allow building JSON strings. [Docs](http://localhost:1313/transports/stream/#json-transport)
120
- * Added new method _mail.resolveAll_ that fetches all attachments and such to be able to more easily build API-based transports
137
+ - Added built-in transport for AWS SES. [Docs](http://localhost:1313/transports/ses/)
138
+ - Updated stream transport to allow building JSON strings. [Docs](http://localhost:1313/transports/stream/#json-transport)
139
+ - Added new method _mail.resolveAll_ that fetches all attachments and such to be able to more easily build API-based transports
121
140
 
122
141
  ## v3.0.2 2017-02-04
123
142
 
124
- * Fixed a bug with OAuth2 login where error callback was fired twice if getToken was not available.
143
+ - Fixed a bug with OAuth2 login where error callback was fired twice if getToken was not available.
125
144
 
126
145
  ## v3.0.1 2017-02-03
127
146
 
128
- * Fixed a bug where Nodemailer threw an exception if `disableFileAccess` option was used
129
- * Added FLOSS [exception declaration](FLOSS_EXCEPTIONS.md)
147
+ - Fixed a bug where Nodemailer threw an exception if `disableFileAccess` option was used
148
+ - Added FLOSS [exception declaration](FLOSS_EXCEPTIONS.md)
130
149
 
131
150
  ## v3.0.0 2017-01-31
132
151
 
133
- * Initial version of Nodemailer 3
152
+ - Initial version of Nodemailer 3
134
153
 
135
154
  This update brings a lot of breaking changes:
136
155
 
137
- * License changed from MIT to **EUPL-1.1**. This was possible as the new version of Nodemailer is a major rewrite. The features I don't have ownership for, were removed or reimplemented. If there's still some snippets in the code that have vague ownership then notify <mailto:andris@kreata.ee> about the conflicting code and I'll fix it.
138
- * Requires **Node.js v6+**
139
- * All **templating is gone**. It was too confusing to use and to be really universal a huge list of different renderers would be required. Nodemailer is about email, not about parsing different template syntaxes
140
- * **No NTLM authentication**. It was too difficult to re-implement. If you still need it then it would be possible to introduce a pluggable SASL interface where you could load the NTLM module in your own code and pass it to Nodemailer. Currently this is not possible.
141
- * **OAuth2 authentication** is built in and has a different [configuration](https://nodemailer.com/smtp/oauth2/). You can use both user (3LO) and service (2LO) accounts to generate access tokens from Nodemailer. Additionally there's a new feature to authenticate differently for every message – useful if your application sends on behalf of different users instead of a single sender.
142
- * **Improved Calendaring**. Provide an ical file to Nodemailer to send out [calendar events](https://nodemailer.com/message/calendar-events/).
156
+ - License changed from MIT to **EUPL-1.1**. This was possible as the new version of Nodemailer is a major rewrite. The features I don't have ownership for, were removed or reimplemented. If there's still some snippets in the code that have vague ownership then notify <mailto:andris@kreata.ee> about the conflicting code and I'll fix it.
157
+ - Requires **Node.js v6+**
158
+ - All **templating is gone**. It was too confusing to use and to be really universal a huge list of different renderers would be required. Nodemailer is about email, not about parsing different template syntaxes
159
+ - **No NTLM authentication**. It was too difficult to re-implement. If you still need it then it would be possible to introduce a pluggable SASL interface where you could load the NTLM module in your own code and pass it to Nodemailer. Currently this is not possible.
160
+ - **OAuth2 authentication** is built in and has a different [configuration](https://nodemailer.com/smtp/oauth2/). You can use both user (3LO) and service (2LO) accounts to generate access tokens from Nodemailer. Additionally there's a new feature to authenticate differently for every message – useful if your application sends on behalf of different users instead of a single sender.
161
+ - **Improved Calendaring**. Provide an ical file to Nodemailer to send out [calendar events](https://nodemailer.com/message/calendar-events/).
143
162
 
144
163
  And also some non-breaking changes:
145
164
 
146
- * All **dependencies were dropped**. There is exactly 0 dependencies needed to use Nodemailer. This brings the installation time of Nodemailer from NPM down to less than 2 seconds
147
- * **Delivery status notifications** added to Nodemailer
148
- * Improved and built-in **DKIM** signing of messages. Previously you needed an external module for this and it did quite a lousy job with larger messages
149
- * **Stream transport** to return a RFC822 formatted message as a stream. Useful if you want to use Nodemailer as a preprocessor and not for actual delivery.
150
- * **Sendmail** transport built-in, no need for external transport plugin
165
+ - All **dependencies were dropped**. There is exactly 0 dependencies needed to use Nodemailer. This brings the installation time of Nodemailer from NPM down to less than 2 seconds
166
+ - **Delivery status notifications** added to Nodemailer
167
+ - Improved and built-in **DKIM** signing of messages. Previously you needed an external module for this and it did quite a lousy job with larger messages
168
+ - **Stream transport** to return a RFC822 formatted message as a stream. Useful if you want to use Nodemailer as a preprocessor and not for actual delivery.
169
+ - **Sendmail** transport built-in, no need for external transport plugin
151
170
 
152
171
  See [Nodemailer.com](https://nodemailer.com/) for full documentation
153
172
 
154
173
  ## 2.7.0 2016-12-08
155
174
 
156
- * Bumped mailcomposer that generates encoded-words differently which might break some tests
175
+ - Bumped mailcomposer that generates encoded-words differently which might break some tests
157
176
 
158
177
  ## 2.6.0 2016-09-05
159
178
 
160
- * Added new options disableFileAccess and disableUrlAccess
161
- * Fixed envelope handling where cc/bcc fields were ignored in the envelope object
179
+ - Added new options disableFileAccess and disableUrlAccess
180
+ - Fixed envelope handling where cc/bcc fields were ignored in the envelope object
162
181
 
163
182
  ## 2.4.2 2016-05-25
164
183
 
165
- * Removed shrinkwrap file. Seemed to cause more trouble than help
184
+ - Removed shrinkwrap file. Seemed to cause more trouble than help
166
185
 
167
186
  ## 2.4.1 2016-05-12
168
187
 
169
- * Fixed outdated shrinkwrap file
188
+ - Fixed outdated shrinkwrap file
170
189
 
171
190
  ## 2.4.0 2016-05-11
172
191
 
173
- * Bumped mailcomposer module to allow using `false` as attachment filename (suppresses filename usage)
174
- * Added NTLM authentication support
192
+ - Bumped mailcomposer module to allow using `false` as attachment filename (suppresses filename usage)
193
+ - Added NTLM authentication support
175
194
 
176
195
  ## 2.3.2 2016-04-11
177
196
 
178
- * Bumped smtp transport modules to get newest smtp-connection that fixes SMTPUTF8 support for internationalized email addresses
197
+ - Bumped smtp transport modules to get newest smtp-connection that fixes SMTPUTF8 support for internationalized email addresses
179
198
 
180
199
  ## 2.3.1 2016-04-08
181
200
 
182
- * Bumped mailcomposer to have better support for message/822 attachments
201
+ - Bumped mailcomposer to have better support for message/822 attachments
183
202
 
184
203
  ## 2.3.0 2016-03-03
185
204
 
186
- * Fixed a bug with attachment filename that contains mixed unicode and dashes
187
- * Added built-in support for proxies by providing a new SMTP option `proxy` that takes a proxy configuration url as its value
188
- * Added option `transport` to dynamically load transport plugins
189
- * Do not require globally installed grunt-cli
205
+ - Fixed a bug with attachment filename that contains mixed unicode and dashes
206
+ - Added built-in support for proxies by providing a new SMTP option `proxy` that takes a proxy configuration url as its value
207
+ - Added option `transport` to dynamically load transport plugins
208
+ - Do not require globally installed grunt-cli
190
209
 
191
210
  ## 2.2.1 2016-02-20
192
211
 
193
- * Fixed a bug in SMTP requireTLS option that was broken
212
+ - Fixed a bug in SMTP requireTLS option that was broken
194
213
 
195
214
  ## 2.2.0 2016-02-18
196
215
 
197
- * Removed the need to use `clone` dependency
198
- * Added new method `verify` to check SMTP configuration
199
- * Direct transport uses STARTTLS by default, fallbacks to plaintext if STARTTLS fails
200
- * Added new message option `list` for setting List-\* headers
201
- * Add simple proxy support with `getSocket` method
202
- * Added new message option `textEncoding`. If `textEncoding` is not set then detect best encoding automatically
203
- * Added new message option `icalEvent` to embed iCalendar events. Example [here](examples/ical-event.js)
204
- * Added new attachment option `raw` to use prepared MIME contents instead of generating a new one. This might be useful when you want to handcraft some parts of the message yourself, for example if you want to inject a PGP encrypted message as the contents of a MIME node
205
- * Added new message option `raw` to use an existing MIME message instead of generating a new one
216
+ - Removed the need to use `clone` dependency
217
+ - Added new method `verify` to check SMTP configuration
218
+ - Direct transport uses STARTTLS by default, fallbacks to plaintext if STARTTLS fails
219
+ - Added new message option `list` for setting List-\* headers
220
+ - Add simple proxy support with `getSocket` method
221
+ - Added new message option `textEncoding`. If `textEncoding` is not set then detect best encoding automatically
222
+ - Added new message option `icalEvent` to embed iCalendar events. Example [here](examples/ical-event.js)
223
+ - Added new attachment option `raw` to use prepared MIME contents instead of generating a new one. This might be useful when you want to handcraft some parts of the message yourself, for example if you want to inject a PGP encrypted message as the contents of a MIME node
224
+ - Added new message option `raw` to use an existing MIME message instead of generating a new one
206
225
 
207
226
  ## 2.1.0 2016-02-01
208
227
 
209
228
  Republishing 2.1.0-rc.1 as stable. To recap, here's the notable changes between v2.0 and v2.1:
210
229
 
211
- * Implemented templating support. You can either use a simple built-in renderer or some external advanced renderer, eg. [node-email-templates](https://github.com/niftylettuce/node-email-templates). Templating [docs](http://nodemailer.com/2-0-0-beta/templating/).
212
- * Updated smtp-pool to emit 'idle' events in order to handle message queue more effectively
213
- * Updated custom header handling, works everywhere the same now, no differences between adding custom headers to the message or to an attachment
230
+ - Implemented templating support. You can either use a simple built-in renderer or some external advanced renderer, eg. [node-email-templates](https://github.com/niftylettuce/node-email-templates). Templating [docs](http://nodemailer.com/2-0-0-beta/templating/).
231
+ - Updated smtp-pool to emit 'idle' events in order to handle message queue more effectively
232
+ - Updated custom header handling, works everywhere the same now, no differences between adding custom headers to the message or to an attachment
214
233
 
215
234
  ## 2.1.0-rc.1 2016-01-25
216
235
 
217
236
  Sneaked in some new features even though it is already rc
218
237
 
219
- * If a SMTP pool is closed while there are still messages in a queue, the message callbacks are invoked with an error
220
- * In case of SMTP pool the transporter emits 'idle' when there is a free connection slot available
221
- * Added method `isIdle()` that checks if a pool has still some free connection slots available
238
+ - If a SMTP pool is closed while there are still messages in a queue, the message callbacks are invoked with an error
239
+ - In case of SMTP pool the transporter emits 'idle' when there is a free connection slot available
240
+ - Added method `isIdle()` that checks if a pool has still some free connection slots available
222
241
 
223
242
  ## 2.1.0-rc.0 2016-01-20
224
243
 
225
- * Bumped dependency versions
244
+ - Bumped dependency versions
226
245
 
227
246
  ## 2.1.0-beta.3 2016-01-20
228
247
 
229
- * Added support for node-email-templates templating in addition to the built-in renderer
248
+ - Added support for node-email-templates templating in addition to the built-in renderer
230
249
 
231
250
  ## 2.1.0-beta.2 2016-01-20
232
251
 
233
- * Implemented simple templating feature
252
+ - Implemented simple templating feature
234
253
 
235
254
  ## 2.1.0-beta.1 2016-01-20
236
255
 
237
- * Allow using prepared header values that are not folded or encoded by Nodemailer
256
+ - Allow using prepared header values that are not folded or encoded by Nodemailer
238
257
 
239
258
  ## 2.1.0-beta.0 2016-01-20
240
259
 
241
- * Use the same header custom structure for message root, attachments and alternatives
242
- * Ensure that Message-Id exists when accessing message
243
- * Allow using array values for custom headers (inserts every value in its own row)
260
+ - Use the same header custom structure for message root, attachments and alternatives
261
+ - Ensure that Message-Id exists when accessing message
262
+ - Allow using array values for custom headers (inserts every value in its own row)
244
263
 
245
264
  ## 2.0.0 2016-01-11
246
265
 
247
- * Released rc.2 as stable
266
+ - Released rc.2 as stable
248
267
 
249
268
  ## 2.0.0-rc.2 2016-01-04
250
269
 
251
- * Locked dependencies
270
+ - Locked dependencies
252
271
 
253
272
  ## 2.0.0-beta.2 2016-01-04
254
273
 
255
- * Updated documentation to reflect changes with SMTP handling
256
- * Use beta versions for smtp/pool/direct transports
257
- * Updated logging
274
+ - Updated documentation to reflect changes with SMTP handling
275
+ - Use beta versions for smtp/pool/direct transports
276
+ - Updated logging
258
277
 
259
278
  ## 2.0.0-beta.1 2016-01-03
260
279
 
261
- * Use bunyan compatible logger instead of the emit('log') style
262
- * Outsourced some reusable methods to nodemailer-shared
263
- * Support setting direct/smtp/pool with the default configuration
280
+ - Use bunyan compatible logger instead of the emit('log') style
281
+ - Outsourced some reusable methods to nodemailer-shared
282
+ - Support setting direct/smtp/pool with the default configuration
264
283
 
265
284
  ## 2.0.0-beta.0 2015-12-31
266
285
 
267
- * Stream errors are not silently swallowed
268
- * Do not use format=flowed
269
- * Use nodemailer-fetch to fetch URL streams
270
- * jshint replaced by eslint
286
+ - Stream errors are not silently swallowed
287
+ - Do not use format=flowed
288
+ - Use nodemailer-fetch to fetch URL streams
289
+ - jshint replaced by eslint
271
290
 
272
291
  ## v1.11.0 2015-12-28
273
292
 
@@ -363,147 +382,147 @@ Total rewrite. See migration guide here: <http://www.andrisreinman.com/nodemaile
363
382
 
364
383
  ## v0.7.1 2014-07-09
365
384
 
366
- * Upgraded aws-sdk to 2.0.5
385
+ - Upgraded aws-sdk to 2.0.5
367
386
 
368
387
  ## v0.7.0 2014-06-17
369
388
 
370
- * Bumped version to v0.7.0
371
- * Fix AWS-SES usage [5b6bc144]
372
- * Replace current SES with new SES using AWS-SDK (Elanorr) [c79d797a]
373
- * Updated README.md about Node Email Templates (niftylettuce) [e52bef81]
389
+ - Bumped version to v0.7.0
390
+ - Fix AWS-SES usage [5b6bc144]
391
+ - Replace current SES with new SES using AWS-SDK (Elanorr) [c79d797a]
392
+ - Updated README.md about Node Email Templates (niftylettuce) [e52bef81]
374
393
 
375
394
  ## v0.6.5 2014-05-15
376
395
 
377
- * Bumped version to v0.6.5
378
- * Use tildes instead of carets for dependency listing [5296ce41]
379
- * Allow clients to set a custom identityString (venables) [5373287d]
380
- * bugfix (adding "-i" to sendmail command line for each new mail) by copying this.args (vrodic) [05a8a9a3]
381
- * update copyright (gdi2290) [3a6cba3a]
396
+ - Bumped version to v0.6.5
397
+ - Use tildes instead of carets for dependency listing [5296ce41]
398
+ - Allow clients to set a custom identityString (venables) [5373287d]
399
+ - bugfix (adding "-i" to sendmail command line for each new mail) by copying this.args (vrodic) [05a8a9a3]
400
+ - update copyright (gdi2290) [3a6cba3a]
382
401
 
383
402
  ## v0.6.4 2014-05-13
384
403
 
385
- * Bumped version to v0.6.4
386
- * added npmignore, bumped dependencies [21bddcd9]
387
- * Add AOL to well-known services (msouce) [da7dd3b7]
404
+ - Bumped version to v0.6.4
405
+ - added npmignore, bumped dependencies [21bddcd9]
406
+ - Add AOL to well-known services (msouce) [da7dd3b7]
388
407
 
389
408
  ## v0.6.3 2014-04-16
390
409
 
391
- * Bumped version to v0.6.3
392
- * Upgraded simplesmtp dependency [dd367f59]
410
+ - Bumped version to v0.6.3
411
+ - Upgraded simplesmtp dependency [dd367f59]
393
412
 
394
413
  ## v0.6.2 2014-04-09
395
414
 
396
- * Bumped version to v0.6.2
397
- * Added error option to Stub transport [c423acad]
398
- * Use SVG npm badge (t3chnoboy) [677117b7]
399
- * add SendCloud to well known services (haio) [43c358e0]
400
- * High-res build-passing and NPM module badges (sahat) [9fdc37cd]
415
+ - Bumped version to v0.6.2
416
+ - Added error option to Stub transport [c423acad]
417
+ - Use SVG npm badge (t3chnoboy) [677117b7]
418
+ - add SendCloud to well known services (haio) [43c358e0]
419
+ - High-res build-passing and NPM module badges (sahat) [9fdc37cd]
401
420
 
402
421
  ## v0.6.1 2014-01-26
403
422
 
404
- * Bumped version to v0.6.1
405
- * Do not throw on multiple errors from sendmail command [c6e2cd12]
406
- * Do not require callback for pickup, fixes #238 [93eb3214]
407
- * Added AWSSecurityToken information to README, fixes #235 [58e921d1]
408
- * Added Nodemailer logo [06b7d1a8]
423
+ - Bumped version to v0.6.1
424
+ - Do not throw on multiple errors from sendmail command [c6e2cd12]
425
+ - Do not require callback for pickup, fixes #238 [93eb3214]
426
+ - Added AWSSecurityToken information to README, fixes #235 [58e921d1]
427
+ - Added Nodemailer logo [06b7d1a8]
409
428
 
410
429
  ## v0.6.0 2013-12-30
411
430
 
412
- * Bumped version to v0.6.0
413
- * Allow defining custom transport methods [ec5b48ce]
414
- * Return messageId with responseObject for all built in transport methods [74445cec]
415
- * Bumped dependency versions for mailcomposer and readable-stream [9a034c34]
416
- * Changed pickup argument name to 'directory' [01c3ea53]
417
- * Added support for IIS pickup directory with PICKUP transport (philipproplesch) [36940b59..360a2878]
418
- * Applied common styles [9e93a409]
419
- * Updated readme [c78075e7]
431
+ - Bumped version to v0.6.0
432
+ - Allow defining custom transport methods [ec5b48ce]
433
+ - Return messageId with responseObject for all built in transport methods [74445cec]
434
+ - Bumped dependency versions for mailcomposer and readable-stream [9a034c34]
435
+ - Changed pickup argument name to 'directory' [01c3ea53]
436
+ - Added support for IIS pickup directory with PICKUP transport (philipproplesch) [36940b59..360a2878]
437
+ - Applied common styles [9e93a409]
438
+ - Updated readme [c78075e7]
420
439
 
421
440
  ## v0.5.15 2013-12-13
422
441
 
423
- * bumped version to v0.5.15
424
- * Updated README, added global options info for setting uo transports [554bb0e5]
425
- * Resolve public hostname, if resolveHostname property for a transport object is set to `true` [9023a6e1..4c66b819]
442
+ - bumped version to v0.5.15
443
+ - Updated README, added global options info for setting uo transports [554bb0e5]
444
+ - Resolve public hostname, if resolveHostname property for a transport object is set to `true` [9023a6e1..4c66b819]
426
445
 
427
446
  ## v0.5.14 2013-12-05
428
447
 
429
- * bumped version to v0.5.14
430
- * Expose status for direct messages [f0312df6]
431
- * Allow to skip the X-Mailer header if xMailer value is set to 'false' [f2c20a68]
448
+ - bumped version to v0.5.14
449
+ - Expose status for direct messages [f0312df6]
450
+ - Allow to skip the X-Mailer header if xMailer value is set to 'false' [f2c20a68]
432
451
 
433
452
  ## v0.5.13 2013-12-03
434
453
 
435
- * bumped version to v0.5.13
436
- * Use the name property from the transport object to use for the domain part of message-id values (1598eee9)
454
+ - bumped version to v0.5.13
455
+ - Use the name property from the transport object to use for the domain part of message-id values (1598eee9)
437
456
 
438
457
  ## v0.5.12 2013-12-02
439
458
 
440
- * bumped version to v0.5.12
441
- * Expose transport method and transport module version if available [a495106e]
442
- * Added 'he' module instead of using custom html entity decoding [c197d102]
443
- * Added xMailer property for transport configuration object to override X-Mailer value [e8733a61]
444
- * Updated README, added description for 'mail' method [e1f5f3a6]
459
+ - bumped version to v0.5.12
460
+ - Expose transport method and transport module version if available [a495106e]
461
+ - Added 'he' module instead of using custom html entity decoding [c197d102]
462
+ - Added xMailer property for transport configuration object to override X-Mailer value [e8733a61]
463
+ - Updated README, added description for 'mail' method [e1f5f3a6]
445
464
 
446
465
  ## v0.5.11 2013-11-28
447
466
 
448
- * bumped version to v0.5.11
449
- * Updated mailcomposer version. Replaces ent with he [6a45b790e]
467
+ - bumped version to v0.5.11
468
+ - Updated mailcomposer version. Replaces ent with he [6a45b790e]
450
469
 
451
470
  ## v0.5.10 2013-11-26
452
471
 
453
- * bumped version to v0.5.10
454
- * added shorthand function mail() for direct transport type [88129bd7]
455
- * minor tweaks and typo fixes [f797409e..ceac0ca4]
472
+ - bumped version to v0.5.10
473
+ - added shorthand function mail() for direct transport type [88129bd7]
474
+ - minor tweaks and typo fixes [f797409e..ceac0ca4]
456
475
 
457
476
  ## v0.5.9 2013-11-25
458
477
 
459
- * bumped version to v0.5.9
460
- * Update for 'direct' handling [77b84e2f]
461
- * do not require callback to be provided for 'direct' type [ec51c79f]
478
+ - bumped version to v0.5.9
479
+ - Update for 'direct' handling [77b84e2f]
480
+ - do not require callback to be provided for 'direct' type [ec51c79f]
462
481
 
463
482
  ## v0.5.8 2013-11-22
464
483
 
465
- * bumped version to v0.5.8
466
- * Added support for 'direct' transport [826f226d..0dbbcbbc]
484
+ - bumped version to v0.5.8
485
+ - Added support for 'direct' transport [826f226d..0dbbcbbc]
467
486
 
468
487
  ## v0.5.7 2013-11-18
469
488
 
470
- * bumped version to v0.5.7
471
- * Replace \r\n by \n in Sendmail transport (rolftimmermans) [fed2089e..616ec90c] A lot of sendmail implementations choke on \r\n newlines and require \n This commit addresses this by transforming all \r\n sequences passed to the sendmail command with \n
489
+ - bumped version to v0.5.7
490
+ - Replace \r\n by \n in Sendmail transport (rolftimmermans) [fed2089e..616ec90c] A lot of sendmail implementations choke on \r\n newlines and require \n This commit addresses this by transforming all \r\n sequences passed to the sendmail command with \n
472
491
 
473
492
  ## v0.5.6 2013-11-15
474
493
 
475
- * bumped version to v0.5.6
476
- * Upgraded mailcomposer dependency to 0.2.4 [e5ff9c40]
477
- * Removed noCR option [e810d1b8]
478
- * Update wellknown.js, added FastMail (k-j-kleist) [cf930f6d]
494
+ - bumped version to v0.5.6
495
+ - Upgraded mailcomposer dependency to 0.2.4 [e5ff9c40]
496
+ - Removed noCR option [e810d1b8]
497
+ - Update wellknown.js, added FastMail (k-j-kleist) [cf930f6d]
479
498
 
480
499
  ## v0.5.5 2013-10-30
481
500
 
482
- * bumped version to v0.5.5
483
- * Updated mailcomposer dependnecy version to 0.2.3
484
- * Remove legacy code - node v0.4 is not supported anymore anyway
485
- * Use hostname (autodetected or from the options.name property) for Message-Id instead of "Nodemailer" (helps a bit when messages are identified as spam)
486
- * Added maxMessages info to README
501
+ - bumped version to v0.5.5
502
+ - Updated mailcomposer dependnecy version to 0.2.3
503
+ - Remove legacy code - node v0.4 is not supported anymore anyway
504
+ - Use hostname (autodetected or from the options.name property) for Message-Id instead of "Nodemailer" (helps a bit when messages are identified as spam)
505
+ - Added maxMessages info to README
487
506
 
488
507
  ## v0.5.4 2013-10-29
489
508
 
490
- * bumped version to v0.5.4
491
- * added "use strict" statements
492
- * Added DSN info to README
493
- * add support for QQ enterprise email (coderhaoxin)
494
- * Add a Bitdeli Badge to README
495
- * DSN options Passthrought into simplesmtp. (irvinzz)
509
+ - bumped version to v0.5.4
510
+ - added "use strict" statements
511
+ - Added DSN info to README
512
+ - add support for QQ enterprise email (coderhaoxin)
513
+ - Add a Bitdeli Badge to README
514
+ - DSN options Passthrought into simplesmtp. (irvinzz)
496
515
 
497
516
  ## v0.5.3 2013-10-03
498
517
 
499
- * bumped version v0.5.3
500
- * Using a stub transport to prevent sendmail from being called during a test. (jsdevel)
501
- * closes #78: sendmail transport does not work correctly on Unix machines. (jsdevel)
502
- * Updated PaaS Support list to include Modulus. (fiveisprime)
503
- * Translate self closing break tags to newline (kosmasgiannis)
504
- * fix typos (aeosynth)
518
+ - bumped version v0.5.3
519
+ - Using a stub transport to prevent sendmail from being called during a test. (jsdevel)
520
+ - closes #78: sendmail transport does not work correctly on Unix machines. (jsdevel)
521
+ - Updated PaaS Support list to include Modulus. (fiveisprime)
522
+ - Translate self closing break tags to newline (kosmasgiannis)
523
+ - fix typos (aeosynth)
505
524
 
506
525
  ## v0.5.2 2013-07-25
507
526
 
508
- * bumped version v0.5.2
509
- * Merge pull request #177 from MrSwitch/master Fixing Amazon SES, fatal error caused by bad connection
527
+ - bumped version v0.5.2
528
+ - Merge pull request #177 from MrSwitch/master Fixing Amazon SES, fatal error caused by bad connection
@@ -87,8 +87,8 @@ class Encoder extends Transform {
87
87
  }
88
88
 
89
89
  if (chunk.length % 3) {
90
- this._remainingBytes = chunk.slice(chunk.length - chunk.length % 3);
91
- chunk = chunk.slice(0, chunk.length - chunk.length % 3);
90
+ this._remainingBytes = chunk.slice(chunk.length - (chunk.length % 3));
91
+ chunk = chunk.slice(0, chunk.length - (chunk.length % 3));
92
92
  } else {
93
93
  this._remainingBytes = false;
94
94
  }