Menu

Header parsing with folded lines

A. Brandt
2010-04-21
2013-04-25
  • A. Brandt

    A. Brandt - 2010-04-21

    Hello,

    vmime fails to parse a header field with no data in the first line.
    Example:
    Message-ID:
    <68CC….@mail.domain.zz>

    The value of "Message-ID" is empty and not "<68CC….@mail.domain.zz>".

    I added this in headField.cpp on line 149 to get the value:
    // Check for folded line
    if (c == '\r' && pos + 2 < end && buffer == '\n' &&
      (buffer == ' '  || buffer == '\t'))
    {
      pos += 3;
    }
    // Check for end of contents
    else if (c == '\r' && pos + 1 < end && buffer == '\n')

     
  • Vincent Richard

    Vincent Richard - 2010-05-14

    Hello!

    Thank you very much for this fix.
    I have committed the patch to the SVN.

    Vincent

     

Log in to post a comment.