Quantcast
Channel: ImapX 2
Viewing all articles
Browse latest Browse all 1952

Commented Unassigned: Embedded Attachments and Attachments [2778]

$
0
0
When a mail has both Embedded Attachments and Attachments... Regular Attachments are not downloading...

Changed the below function in BodyStructureParser.cs
private void DropExtensionData()
{
var braces = 0;

while (true)
{
var tmp = _reader.Read();
if (tmp == '(')
braces++;
else if (tmp == ')')
{
braces--;
if (braces <= 0)
break;

}
else if (tmp == -1)
break;
}
}

Update to if (braces < 0)

private void DropExtensionData()
{
var braces = 0;

while (true)
{
var tmp = _reader.Read();
if (tmp == '(')
braces++;
else if (tmp == ')')
{
braces--;
if (braces < 0)
break;

}
else if (tmp == -1)
break;
}
}
Comments: ** Comment from web user: stk26kakarla **

I am facing the same problem, but your solution is not helping.
No errors; simply the Attachments count is 0
Lib: 2.0.0.18
Please help.
thanks :)


Viewing all articles
Browse latest Browse all 1952

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>