2
Vote

Embedded Attachments and Attachments

description

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

stk26kakarla wrote Oct 8, 2016 at 8:10 PM

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