Socket
Socket
Sign inDemoInstall

buildmail

Package Overview
Dependencies
Maintainers
1
Versions
43
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

buildmail - npm Package Compare versions

Comparing version 3.5.1 to 3.5.2

4

CHANGELOG.md
# 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 @@

7

package.json
{
"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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc