From 46c5dd5eef0ed03d4e43f597622b6fd1847a806a Mon Sep 17 00:00:00 2001 From: Chotiwat Chawannakul Date: Fri, 14 Sep 2012 12:51:02 +0700 Subject: [PATCH] Fix invalid part id for message/rfc822 attachment --- lib/imap.parsers.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lib/imap.parsers.js b/lib/imap.parsers.js index 5b2ccb8..fb80eb7 100644 --- a/lib/imap.parsers.js +++ b/lib/imap.parsers.js @@ -179,9 +179,7 @@ exports.parseBodyStructure = function(cur, literals, prefix, partID) { // body if (partLen > next && Array.isArray(cur[next])) { - part.body = exports.parseBodyStructure(cur[next], literals, prefix - + (prefix !== '' ? '.' : '') - + (partID++).toString(), 1); + part.body = exports.parseBodyStructure(cur[next], literals, prefix, 1); } else part.body = null; ++next;