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 **
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 :)