Skip to content

Commit

Permalink
Trim lines (cosmetic change)
Browse files Browse the repository at this point in the history
  • Loading branch information
jholster committed Mar 15, 2016
1 parent 44553ac commit 1fcf276
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions smtp/message.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ var os = require('os');
var path = require('path');
var moment = require('moment');
var mimelib = require('mimelib');
var addressparser = require('addressparser');
var addressparser = require('addressparser');
var CRLF = "\r\n";
var MIMECHUNK = 76; // MIME standard wants 76 char chunks when sending out.
var BASE64CHUNK= 24; // BASE64 bits needed before padding is used
Expand All @@ -30,7 +30,7 @@ var generate_boundary = function()
return text;
};

function person2address(l)
function person2address(l)
{
var addresses = addressparser(l);
return addresses.map(function(addr) {
Expand Down Expand Up @@ -95,12 +95,12 @@ var Message = function(headers)
}
};

Message.prototype =
Message.prototype =
{
attach: function(options)
{
/*
legacy support, will remove eventually...
/*
legacy support, will remove eventually...
arguments -> (path, type, name, headers)
*/
if (arguments.length > 1)
Expand All @@ -120,7 +120,7 @@ Message.prototype =
return this;
},

/*
/*
legacy support, will remove eventually...
should use Message.attach() instead
*/
Expand Down Expand Up @@ -230,10 +230,10 @@ var MessageStream = function(message)
{
next.apply(null, args);
}

next.apply(null, args);
};

var output_mixed = function()
{
var boundary = generate_boundary();
Expand Down Expand Up @@ -278,12 +278,12 @@ var MessageStream = function(message)
{
var data = [],
header,
headers =
headers =
{
'content-type': attachment.type +
(attachment.charset ? "; charset=" + attachment.charset : "") +
'content-type': attachment.type +
(attachment.charset ? "; charset=" + attachment.charset : "") +
(attachment.method ? "; method=" + attachment.method : ""),
'content-transfer-encoding': 'base64',
'content-transfer-encoding': 'base64',
'content-disposition': attachment.inline ? 'inline' : 'attachment; filename="' + mimelib.encodeMimeWord(attachment.name, 'Q', 'utf-8') + '"'
};

Expand Down Expand Up @@ -399,7 +399,7 @@ var MessageStream = function(message)
self.on('resume', attachment.stream.resume);
self.on('error', attachment.stream.resume);
}
else
else
self.emit('error', {message:"stream not readable"});
};

Expand Down Expand Up @@ -612,7 +612,7 @@ MessageStream.prototype.destroySoon = function()

exports.Message = Message;
exports.BUFFERSIZE = BUFFERSIZE;
exports.create = function(headers)
exports.create = function(headers)
{
return new Message(headers);
};

0 comments on commit 1fcf276

Please sign in to comment.