You are viewing a plain text version of this content. The canonical link for it is here.
Posted to server-dev@james.apache.org by "Stefano Bagnara (JIRA)" <se...@james.apache.org> on 2005/03/16 11:32:21 UTC

[jira] Created: (JAMES-356) MimeMessageWrapper does not handle multiline headers

MimeMessageWrapper does not handle multiline headers
----------------------------------------------------

         Key: JAMES-356
         URL: http://issues.apache.org/jira/browse/JAMES-356
     Project: James
        Type: Bug
  Components: James Core  
    Versions: 2.2.0    
 Environment: James 2.2.0, JDK1.4.2/JDK1.5, Linux Fedora/Windowx XP
    Reporter: Stefano Bagnara
    Priority: Minor


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.


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org


[jira] Assigned: (JAMES-356) MimeMessageWrapper does not handle multiline headers

Posted by "Stefano Bagnara (JIRA)" <se...@james.apache.org>.
     [ http://issues.apache.org/jira/browse/JAMES-356?page=all ]

Stefano Bagnara reassigned JAMES-356:
-------------------------------------

    Assign To: Stefano Bagnara

> MimeMessageWrapper does not handle multiline headers
> ----------------------------------------------------
>
>          Key: JAMES-356
>          URL: http://issues.apache.org/jira/browse/JAMES-356
>      Project: James
>         Type: Bug
>   Components: James Core
>     Versions: 2.2.0
>  Environment: James 2.2.0, JDK1.4.2/JDK1.5, Linux Fedora/Windowx XP
>     Reporter: Stefano Bagnara
>     Assignee: Stefano Bagnara
>     Priority: Minor
>  Attachments: MimeMessageWrapper.java.patch, MimeMessageWrapperTest.java.patch
>
> 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.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org


[jira] Resolved: (JAMES-356) MimeMessageWrapper does not handle multiline headers

Posted by "Stefano Bagnara (JIRA)" <se...@james.apache.org>.
     [ http://issues.apache.org/jira/browse/JAMES-356?page=all ]
     
Stefano Bagnara resolved JAMES-356:
-----------------------------------

    Fix Version: 2.2.1
     Resolution: Fixed

Created an unfold method (not so optimized) and added it to the subject handling routine

> MimeMessageWrapper does not handle multiline headers
> ----------------------------------------------------
>
>          Key: JAMES-356
>          URL: http://issues.apache.org/jira/browse/JAMES-356
>      Project: James
>         Type: Bug
>   Components: James Core
>     Versions: 2.2.0
>  Environment: James 2.2.0, JDK1.4.2/JDK1.5, Linux Fedora/Windowx XP
>     Reporter: Stefano Bagnara
>     Assignee: Stefano Bagnara
>     Priority: Minor
>      Fix For: 2.2.1
>  Attachments: MimeMessageWrapper.java.patch, MimeMessageWrapperTest.java.patch
>
> 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.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org


[jira] Updated: (JAMES-356) MimeMessageWrapper does not handle multiline headers

Posted by "Stefano Bagnara (JIRA)" <se...@james.apache.org>.
     [ http://issues.apache.org/jira/browse/JAMES-356?page=all ]

Stefano Bagnara updated JAMES-356:
----------------------------------

    Attachment: MimeMessageWrapper.java.patch
                MimeMessageWrapperTest.java.patch

Here is the patch and the test that shows the bug and the fixed behaviour.

> MimeMessageWrapper does not handle multiline headers
> ----------------------------------------------------
>
>          Key: JAMES-356
>          URL: http://issues.apache.org/jira/browse/JAMES-356
>      Project: James
>         Type: Bug
>   Components: James Core
>     Versions: 2.2.0
>  Environment: James 2.2.0, JDK1.4.2/JDK1.5, Linux Fedora/Windowx XP
>     Reporter: Stefano Bagnara
>     Priority: Minor
>  Attachments: MimeMessageWrapper.java.patch, MimeMessageWrapperTest.java.patch
>
> 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.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org