Comparing version 3.5.1 to 3.5.2
# Changelog | ||
## 3.5.2 2016-02-29 | ||
* Fixes an issue with long filenames that include unicode and dashes | ||
## 3.5.0 2016-02-11 | ||
@@ -4,0 +8,0 @@ |
{ | ||
"name": "buildmail", | ||
"version": "3.5.1", | ||
"version": "3.5.2", | ||
"description": "buildmail is a low level rfc2822 message composer. Define your own mime tree, no magic included.", | ||
@@ -22,3 +22,3 @@ "author": "Andris Reinman <andris@kreata.ee>", | ||
"libbase64": "0.1.0", | ||
"libmime": "2.0.2", | ||
"libmime": "2.0.3", | ||
"libqp": "1.1.0", | ||
@@ -31,3 +31,4 @@ "nodemailer-fetch": "1.3.0", | ||
"grunt": "~0.4.5", | ||
"grunt-eslint": "^17.3.1", | ||
"grunt-cli": "^0.1.13", | ||
"grunt-eslint": "^18.0.0", | ||
"grunt-mocha-test": "~0.12.7", | ||
@@ -34,0 +35,0 @@ "mocha": "^2.4.5", |
@@ -574,2 +574,18 @@ /* eslint no-unused-expressions:0 */ | ||
it('should set dashed filename', function (done) { | ||
var mb = new Buildmail('text/plain', { | ||
filename: 'Ɣ------Ɣ------Ɣ------Ɣ------Ɣ------Ɣ------Ɣ------.pdf' | ||
}). | ||
setContent('jõgeva'); | ||
mb.build(function (err, msg) { | ||
expect(err).to.not.exist; | ||
msg = msg.toString(); | ||
expect(msg.indexOf('Content-Disposition: attachment;\r\n' + | ||
' filename*0*=utf-8\'\'%C6%94------%C6%94------%C6%94------%C6%94;\r\n' + | ||
' filename*1*=------%C6%94------%C6%94------%C6%94------.pdf')).to.be.gte(0); | ||
done(); | ||
}); | ||
}); | ||
it('should encode filename with a space', function (done) { | ||
@@ -576,0 +592,0 @@ var mb = new Buildmail('text/plain', { |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
103115
2161
7
+ Addedlibmime@2.0.3(transitive)
- Removedlibmime@2.0.2(transitive)
Updatedlibmime@2.0.3