James Mime4j
  1. James Mime4j
  2. MIME4J-146

[possible backward incompatibility] Make sure "body" is always unfolded, "raw" is always folded, both in RawField and ParsedFields.

    Details

    • Type: Task Task
    • Status: Resolved
    • Priority: Critical Critical
    • Resolution: Fixed
    • Affects Version/s: 0.6
    • Fix Version/s: 0.7
    • Component/s: None
    • Labels:
      None

      Description

      In the current code it's not consistent how we deal with folding and unfolding.
      The most used way (in the current code) is to have "raw" as the original, folded, version of the header, while body includes the unfolded/decoded version of the header.

      RawField.getBody should be changed to "unfold" the field.

        Issue Links

          Activity

          Hide
          Stefano Bagnara added a comment -

          What I propose to fix is strictly related to the previous bugfix.

          Show
          Stefano Bagnara added a comment - What I propose to fix is strictly related to the previous bugfix.
          Hide
          Stefano Bagnara added a comment -

          IMO this works as expected now.
          All tests still pass.
          If you have external code depending on the previous behaviour please provide a testcase so that we can discuss the need of body to be unfolded in the parser and not by RawField.

          Show
          Stefano Bagnara added a comment - IMO this works as expected now. All tests still pass. If you have external code depending on the previous behaviour please provide a testcase so that we can discuss the need of body to be unfolded in the parser and not by RawField.

            People

            • Assignee:
              Stefano Bagnara
              Reporter:
              Stefano Bagnara
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development