Skip to content
This repository has been archived by the owner on Mar 11, 2018. It is now read-only.

Commit

Permalink
v3.3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
andris9 committed Jan 20, 2016
1 parent fc3c868 commit 1a1ddcb
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ Attachment object consists of the following properties:
* **contentType** - optional content type for the attachment, if not set will be derived from the `filename` property
* **contentTransferEncoding** - optional transfer encoding for the attachment, if not set it will be derived from the `contentType` property. Example values: `quoted-printable`, `base64`
* **contentDisposition** - optional content disposition type for the attachment, defaults to 'attachment'
* **headers** is an object of additional headers `{'X-My-Header': 'value'}`
* **headers** is an object of additional headers, similar to *message.headers* option `{'X-My-Header': 'value'}`

Attachments can be added as many as you want.

Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "mailcomposer",
"description": "Compose E-Mail messages",
"version": "3.2.1",
"version": "3.3.0",
"author": "Andris Reinman",
"license": "MIT",
"maintainers": [
Expand All @@ -19,7 +19,7 @@
},
"main": "./lib/mailcomposer",
"dependencies": {
"buildmail": "3.2.0",
"buildmail": "3.3.0",
"libmime": "2.0.0"
},
"devDependencies": {
Expand Down
10 changes: 10 additions & 0 deletions test/mailcomposer-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -186,11 +186,21 @@ describe('MailComposer unit tests', function () {
html: 'def',
baseBoundary: 'test',
messageId: '<zzzzzz>',
headers: {
'x-processed': 'a really long header or value with non-ascii characters 👮',
'x-unprocessed': {
prepared: true,
value: 'a really long header or value with non-ascii characters 👮'
}
},
date: 'Sat, 21 Jun 2014 10:52:44 +0000'
};

var expected = '' +
'Content-Type: multipart/alternative; boundary="----sinikael-?=_1-test"\r\n' +
'X-Processed: a really long header or value with non-ascii characters\r\n' +
' =?UTF-8?Q?=F0=9F=91=AE?=\r\n' +
'X-Unprocessed: a really long header or value with non-ascii characters 👮\r\n' +
'Message-Id: <zzzzzz>\r\n' +
'Date: Sat, 21 Jun 2014 10:52:44 +0000\r\n' +
'MIME-Version: 1.0\r\n' +
Expand Down

0 comments on commit 1a1ddcb

Please sign in to comment.