Merge pull request #100 from wavify/rfc822-bodystructure

Fix invalid part id for message/rfc822 attachment
fork
Brian White 12 years ago
commit 2268fa6004

@ -178,11 +178,9 @@ exports.parseBodyStructure = function(cur, literals, prefix, partID) {
++next;
// body
if (partLen > next && Array.isArray(cur[next])) {
part.body = exports.parseBodyStructure(cur[next], literals, prefix
+ (prefix !== '' ? '.' : '')
+ (partID++).toString(), 1);
} else
if (partLen > next && Array.isArray(cur[next]))
part.body = exports.parseBodyStructure(cur[next], literals, prefix, 1);
else
part.body = null;
++next;
}

Loading…
Cancel
Save