Uploaded image for project: 'James Server'
  1. James Server
  2. JAMES-356

MimeMessageWrapper does not handle multiline headers

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 2.2.0
    • 2.3.0
    • James Core
    • None
    • James 2.2.0, JDK1.4.2/JDK1.5, Linux Fedora/Windowx XP

    Description

      getSubject in MimeMessageWrapper does not unfold header content. This cause errors for example while DSNBounce'ing a MimeMessage with a long subject (multiline if more than 77 chars).

      It should call "unfold()" method from the MimeMessage class but this is private, so we should rewrite an unfold procedure.

      Attachments

        1. MimeMessageWrapper.java.patch
          5 kB
          Stefano Bagnara
        2. MimeMessageWrapperTest.java.patch
          1 kB
          Stefano Bagnara

        Activity

          People

            bago Stefano Bagnara
            bago Stefano Bagnara
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: