Uploaded image for project: 'James Mime4j'
  1. James Mime4j
  2. MIME4J-244

Cannot decode "quoted printable" encoded message which have space before equal sign("=") in strict mode

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Pending Closed
    • 0.7.2
    • 0.7.3, 0.8.0
    • parser (core)
    • None

    Description

      Lets assume that we a message encoded using "quoted printable" encoding like this:
      "text before eq sign =\r\n text after LF"

      When you try to decode it using QuotedPrintableInputStream in Strict Mode you will get following exception:
      java.io.IOException: Found LF without CR
      at org.apache.james.mime4j.codec.QuotedPrintableInputStream.read0(QuotedPrintableInputStream.java:195)
      at org.apache.james.mime4j.codec.QuotedPrintableInputStream.read(QuotedPrintableInputStream.java:317)
      at org.apache.james.mime4j.codec.QuotedPrintableInputStream.read(QuotedPrintableInputStream.java:302)
      at org.apache.james.mime4j.codec.QuotedPrintableInputStreamTest.read(QuotedPrintableInputStreamTest.java:199)
      The same is fine using SILENT mode.

      Attachments

        Issue Links

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            Unassigned Unassigned
            d_hadzhiev Detelin Hadzhiev
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment