• Peter Jeremy's avatar
    Improve reporting of unparsed MIME headers & remove code duplication · cd0b3a8f
    Peter Jeremy authored
    (paraphrased from Peter's email)
    When mairix is unable to parse a MIME header, it is able to report the complete
    MIME type, rather than just the problematic attribute.  The complete patch
    affects nvp.c, nvp.h, and several chunks in rfc822.c - the latter pieces change
    the MIME parsing code from eg:
    ... [omit example]
    which I believe has the additional benefit of improving legibility, removing
    duplicate strings and removing a potential off-by-1 error.
nvp.h 1.38 KB